pub struct ImportedEnum {
pub local_name: String,
pub span: Span,
pub document: Document,
/* private fields */
}Expand description
An enum imported into scope.
Fields§
§local_name: StringThe aliased name of the enum in the dependent document.
span: SpanThe span of the import statement.
document: DocumentThe source document that defines the enum.
Implementations§
Source§impl ImportedEnum
impl ImportedEnum
Sourcepub fn definition(&self) -> EnumDefinition
pub fn definition(&self) -> EnumDefinition
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 ImportedEnum
impl Clone for ImportedEnum
Source§fn clone(&self) -> ImportedEnum
fn clone(&self) -> ImportedEnum
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 ImportedEnum
impl Debug for ImportedEnum
Source§impl PartialEq for ImportedEnum
impl PartialEq for ImportedEnum
impl StructuralPartialEq for ImportedEnum
Auto Trait Implementations§
impl Freeze for ImportedEnum
impl RefUnwindSafe for ImportedEnum
impl Send for ImportedEnum
impl Sync for ImportedEnum
impl Unpin for ImportedEnum
impl UnsafeUnpin for ImportedEnum
impl UnwindSafe for ImportedEnum
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