pub struct Constant {
pub identifier: Identifier,
pub type_: Type,
pub literal: Literal,
}Expand description
Constant Struct
Fields§
§identifier: Identifieridentifier field
type_: Typetype_ field
literal: Literalliteral field
Trait Implementations§
Source§impl From<ImplItemConst> for Constant
impl From<ImplItemConst> for Constant
Source§fn from(item_const: ImplItemConst) -> Self
fn from(item_const: ImplItemConst) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Constant
Auto Trait Implementations§
impl Freeze for Constant
impl RefUnwindSafe for Constant
impl Send for Constant
impl Sync for Constant
impl Unpin for Constant
impl UnwindSafe for Constant
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