Struct anyscript_compiler::setup::interpreter::ReadShebang
source · pub struct ReadShebang {
pub shebang_line: String,
pub interpreter_line: String,
pub path_line: String,
}
Expand description
Struktur, die eine Shebang-Zeile und die zugehörigen Interpreter- und Pfadzeilen speichert.
Fields§
§shebang_line: String
Die Shebang-Zeile.
interpreter_line: String
Die Interpreter-Zeile.
path_line: String
Die Pfad-Zeile.
Implementations§
source§impl ReadShebang
impl ReadShebang
sourcepub fn get_shebang_line(&self) -> String
pub fn get_shebang_line(&self) -> String
sourcepub fn get_interpreter_line(&mut self) -> String
pub fn get_interpreter_line(&mut self) -> String
Gibt die Interpreter-Zeile zurück.
§Rückgabe
Gibt eine Kopie der Interpreter-Zeile zurück und speichert sie in self.interpreter_line
.
sourcepub fn get_path_line(&mut self) -> String
pub fn get_path_line(&mut self) -> String
sourcepub fn get_path_line_ref(&self) -> &String
pub fn get_path_line_ref(&self) -> &String
Auto Trait Implementations§
impl Freeze for ReadShebang
impl RefUnwindSafe for ReadShebang
impl Send for ReadShebang
impl Sync for ReadShebang
impl Unpin for ReadShebang
impl UnwindSafe for ReadShebang
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more