pub struct ImportedStruct {
pub local_name: String,
pub span: Span,
pub document: Document,
/* private fields */
}Expand description
A struct imported into scope.
Fields§
§local_name: StringThe aliased name of the struct in the dependent document.
span: SpanThe span of the import statement that introduced this struct.
document: DocumentThe source document that defines the struct.
Implementations§
Source§impl ImportedStruct
impl ImportedStruct
Sourcepub fn definition(&self) -> StructDefinition
pub fn definition(&self) -> StructDefinition
Reconstructs the AST definition from the stored green node.
This provides access to choice expressions and other AST details.
Trait Implementations§
Source§impl Clone for ImportedStruct
impl Clone for ImportedStruct
Source§fn clone(&self) -> ImportedStruct
fn clone(&self) -> ImportedStruct
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 ImportedStruct
impl Debug for ImportedStruct
Source§impl PartialEq for ImportedStruct
impl PartialEq for ImportedStruct
impl StructuralPartialEq for ImportedStruct
Auto Trait Implementations§
impl Freeze for ImportedStruct
impl RefUnwindSafe for ImportedStruct
impl Send for ImportedStruct
impl Sync for ImportedStruct
impl Unpin for ImportedStruct
impl UnsafeUnpin for ImportedStruct
impl UnwindSafe for ImportedStruct
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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