pub struct SourceRustModule {
pub parent: Arc<[String]>,
pub name: String,
pub span: SourceByteSpan,
pub body: Option<SourceByteSpan>,
pub supported: bool,
pub visibility: SourceRustVisibility,
}Expand description
Source-proven placement of one Rust module declaration.
Fields§
§parent: Arc<[String]>Inline containing module path inside this source file.
name: StringExact grammar identifier declared by mod syntax.
span: SourceByteSpanOriginal module declaration extent.
body: Option<SourceByteSpan>Inline body extent; absence means an external module file is required.
supported: boolConditional or custom-path ownership is deliberately not guessed.
visibility: SourceRustVisibilityVisibility checked independently from callable declaration lookup.
Trait Implementations§
Source§impl Clone for SourceRustModule
impl Clone for SourceRustModule
Source§fn clone(&self) -> SourceRustModule
fn clone(&self) -> SourceRustModule
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 moreSource§impl Debug for SourceRustModule
impl Debug for SourceRustModule
impl Eq for SourceRustModule
Source§impl PartialEq for SourceRustModule
impl PartialEq for SourceRustModule
Source§fn eq(&self, other: &SourceRustModule) -> bool
fn eq(&self, other: &SourceRustModule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceRustModule
Auto Trait Implementations§
impl Freeze for SourceRustModule
impl RefUnwindSafe for SourceRustModule
impl Send for SourceRustModule
impl Sync for SourceRustModule
impl Unpin for SourceRustModule
impl UnsafeUnpin for SourceRustModule
impl UnwindSafe for SourceRustModule
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.