pub struct PureStatic {
pub attrs: Vec<PureAttribute>,
pub vis: PureVis,
pub is_mut: bool,
pub name: String,
pub ty: PureType,
pub value: PureExpr,
}Expand description
A static item.
Fields§
§attrs: Vec<PureAttribute>Attributes.
vis: PureVisVisibility.
is_mut: boolIs mutable?
name: StringName.
ty: PureTypeType.
value: PureExprValue expression.
Trait Implementations§
Source§impl Clone for PureStatic
impl Clone for PureStatic
Source§fn clone(&self) -> PureStatic
fn clone(&self) -> PureStatic
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 moreSource§impl Debug for PureStatic
impl Debug for PureStatic
Source§impl PartialEq for PureStatic
impl PartialEq for PureStatic
Source§fn eq(&self, other: &PureStatic) -> bool
fn eq(&self, other: &PureStatic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSyn for PureStatic
impl ToSyn for PureStatic
Source§type Output = ItemStatic
type Output = ItemStatic
syn output type produced from self.Source§fn to_syn(&self) -> Result<ItemStatic, ToSynError>
fn to_syn(&self) -> Result<ItemStatic, ToSynError>
Convert
self back into its syn representation.impl Eq for PureStatic
impl StructuralPartialEq for PureStatic
Auto Trait Implementations§
impl Freeze for PureStatic
impl RefUnwindSafe for PureStatic
impl Send for PureStatic
impl Sync for PureStatic
impl Unpin for PureStatic
impl UnsafeUnpin for PureStatic
impl UnwindSafe for PureStatic
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