pub struct Declarator {
pub name: Option<Symbol>,
pub name_span: Span,
pub derived: DerivedList,
pub span: Span,
}Expand description
A name and the steps that build its type outward from it.
Fields§
§name: Option<Symbol>The name, absent in an abstract declarator.
name_span: SpanJust the name, for the diagnostic that points at it rather than at the whole thing.
derived: DerivedListThe derivations, from the name outward, folded from the end onto the specifier type.
span: SpanThe whole declarator.
Implementations§
Source§impl Declarator
impl Declarator
Sourcepub const fn is_abstract(&self) -> bool
pub const fn is_abstract(&self) -> bool
Whether this declarator has no name, which is what makes it abstract.
Trait Implementations§
Source§impl Clone for Declarator
impl Clone for Declarator
Source§fn clone(&self) -> Declarator
fn clone(&self) -> Declarator
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 moreimpl Copy for Declarator
Source§impl Debug for Declarator
impl Debug for Declarator
impl Eq for Declarator
Source§impl PartialEq for Declarator
impl PartialEq for Declarator
impl StructuralPartialEq for Declarator
Auto Trait Implementations§
impl Freeze for Declarator
impl RefUnwindSafe for Declarator
impl Send for Declarator
impl Sync for Declarator
impl Unpin for Declarator
impl UnsafeUnpin for Declarator
impl UnwindSafe for Declarator
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