pub struct Static {
pub name: Identifier,
pub ty: Type,
pub expr: Expr,
pub mutable: bool,
pub span: Range<usize>,
}Expand description
Represents a static definition in Rust source code.
Fields§
§name: IdentifierThe static name identifier
ty: TypeThe static type
expr: ExprThe static value expression
mutable: boolWhether the static is mutable
span: Range<usize>Source code span where this static appears
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Static
impl<'de> Deserialize<'de> for Static
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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