pub struct Static {
pub mutable: Mutability,
pub name: Sym,
pub ty: Box<Ty>,
pub init: Box<Expr>,
}
Expand description
A static
variable
Fields§
§mutable: Mutability
§name: Sym
§ty: Box<Ty>
§init: Box<Expr>
Trait Implementations§
source§impl PartialEq for Static
impl PartialEq for Static
impl Eq for Static
impl StructuralPartialEq for Static
Auto Trait Implementations§
impl Freeze for Static
impl RefUnwindSafe for Static
impl Send for Static
impl Sync for Static
impl Unpin for Static
impl UnwindSafe for Static
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