pub struct SourceModule {
pub name: ModuleName,
pub human_readable_name: String,
pub type: Type,
pub environment_name: Option<String>,
pub cyclic: bool,
pub allocator: Arc<Allocator>,
pub names: Arc<AstNameTable>,
pub parse_errors: Vec<ParseError>,
pub root: *mut AstStatBlock,
pub mode: Option<Mode>,
pub hotcomments: Vec<HotComment>,
pub comment_locations: Vec<Comment>,
}Fields§
§name: ModuleName§human_readable_name: String§type: Type§environment_name: Option<String>§cyclic: bool§allocator: Arc<Allocator>§names: Arc<AstNameTable>§parse_errors: Vec<ParseError>§root: *mut AstStatBlock§mode: Option<Mode>§hotcomments: Vec<HotComment>§comment_locations: Vec<Comment>Implementations§
Source§impl SourceModule
impl SourceModule
pub fn source_module() -> Self
Trait Implementations§
Source§impl Clone for SourceModule
impl Clone for SourceModule
Source§fn clone(&self) -> SourceModule
fn clone(&self) -> SourceModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for SourceModule
impl !Sync for SourceModule
impl Freeze for SourceModule
impl RefUnwindSafe for SourceModule
impl Unpin for SourceModule
impl UnsafeUnpin for SourceModule
impl UnwindSafe for SourceModule
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