pub struct StaticVar {
pub name: Ident,
pub default: Option<Expr>,
pub span: Span,
}Expand description
One variable of a static statement.
Fields§
§name: IdentVariable name without $.
default: Option<Expr>Initial value, if any.
span: SpanSource span.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticVar
impl RefUnwindSafe for StaticVar
impl Send for StaticVar
impl Sync for StaticVar
impl Unpin for StaticVar
impl UnsafeUnpin for StaticVar
impl UnwindSafe for StaticVar
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