Struct ruast::StaticItem
source · pub struct StaticItem {
pub ident: String,
pub ty: Type,
pub expr: Option<Expr>,
}Fields§
§ident: String§ty: Type§expr: Option<Expr>Trait Implementations§
source§impl Clone for StaticItem
impl Clone for StaticItem
source§fn clone(&self) -> StaticItem
fn clone(&self) -> StaticItem
Returns a copy of the value. Read more
1.0.0 · 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 StaticItem
impl Debug for StaticItem
source§impl Display for StaticItem
impl Display for StaticItem
source§impl From<StaticItem> for ItemKind
impl From<StaticItem> for ItemKind
source§fn from(item: StaticItem) -> Self
fn from(item: StaticItem) -> Self
Converts to this type from the input type.
source§impl From<StaticItem> for Stmt
impl From<StaticItem> for Stmt
source§fn from(item: StaticItem) -> Self
fn from(item: StaticItem) -> Self
Converts to this type from the input type.
source§impl From<StaticItem> for TokenStream
impl From<StaticItem> for TokenStream
source§fn from(value: StaticItem) -> Self
fn from(value: StaticItem) -> Self
Converts to this type from the input type.
source§impl Hash for StaticItem
impl Hash for StaticItem
source§impl PartialEq for StaticItem
impl PartialEq for StaticItem
source§fn eq(&self, other: &StaticItem) -> bool
fn eq(&self, other: &StaticItem) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for StaticItem
impl StructuralEq for StaticItem
impl StructuralPartialEq for StaticItem
Auto Trait Implementations§
impl RefUnwindSafe for StaticItem
impl Send for StaticItem
impl Sync for StaticItem
impl Unpin for StaticItem
impl UnwindSafe for StaticItem
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