pub struct Module {
pub path: String,
pub resolved: bool,
pub tokens: Vec<Token>,
pub statements: Vec<Statement>,
pub variable_table: VariableTable,
pub function_table: FunctionTable,
pub export_table: ExportTable,
pub import_table: ImportTable,
pub content: String,
pub current_dir: String,
}Fields§
§path: String§resolved: bool§tokens: Vec<Token>§statements: Vec<Statement>§variable_table: VariableTable§function_table: FunctionTable§export_table: ExportTable§import_table: ImportTable§content: String§current_dir: StringImplementations§
Source§impl Module
impl Module
pub fn new(path: &str) -> Self
pub fn is_resolved(&self) -> bool
pub fn set_resolved(&mut self, resolved: bool)
pub fn add_token(&mut self, token: Token)
pub fn add_statement(&mut self, statement: Statement)
pub fn from_existing(path: &str, content: String) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Module
impl RefUnwindSafe for Module
impl Send for Module
impl Sync for Module
impl Unpin for Module
impl UnwindSafe for Module
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
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