Struct Ident
pub struct Ident {
pub name: Symbol,
pub span: Span,
}Fields§
§name: Symbolname should never be the empty symbol. If you are considering that,
you are probably conflating “empty identifier with “no identifier” and
you should use Option<Ident> instead.
Trying to construct an Ident with an empty name will trigger debug assertions.
span: SpanAuto Trait Implementations§
impl DynSend for Ident
impl DynSync for Ident
impl Freeze for Ident
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin for Ident
impl UnsafeUnpin for Ident
impl UnwindSafe for Ident
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