pub struct PureConst {
pub attrs: Vec<PureAttribute>,
pub vis: PureVis,
pub name: String,
pub ty: PureType,
pub value: Option<PureExpr>,
}Expand description
A const item.
Fields§
§attrs: Vec<PureAttribute>Attributes.
vis: PureVisVisibility.
name: StringName.
ty: PureTypeType.
value: Option<PureExpr>Value expression (None for trait consts without default).
Trait Implementations§
impl Eq for PureConst
impl StructuralPartialEq for PureConst
Auto Trait Implementations§
impl Freeze for PureConst
impl RefUnwindSafe for PureConst
impl Send for PureConst
impl Sync for PureConst
impl Unpin for PureConst
impl UnsafeUnpin for PureConst
impl UnwindSafe for PureConst
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