pub struct PureStruct {
pub attrs: Vec<PureAttribute>,
pub vis: PureVis,
pub name: String,
pub generics: PureGenerics,
pub fields: PureFields,
}Expand description
A struct definition.
Fields§
§attrs: Vec<PureAttribute>Attributes.
vis: PureVisVisibility.
name: StringName.
generics: PureGenericsGenerics.
fields: PureFieldsFields.
Trait Implementations§
Source§impl Clone for PureStruct
impl Clone for PureStruct
Source§fn clone(&self) -> PureStruct
fn clone(&self) -> PureStruct
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 PureStruct
impl Debug for PureStruct
impl Eq for PureStruct
Source§impl PartialEq for PureStruct
impl PartialEq for PureStruct
impl StructuralPartialEq for PureStruct
Source§impl ToSyn for PureStruct
impl ToSyn for PureStruct
Source§type Output = ItemStruct
type Output = ItemStruct
syn output type produced from self.Source§fn to_syn(&self) -> Result<ItemStruct, ToSynError>
fn to_syn(&self) -> Result<ItemStruct, ToSynError>
Convert
self back into its syn representation.Auto Trait Implementations§
impl Freeze for PureStruct
impl RefUnwindSafe for PureStruct
impl Send for PureStruct
impl Sync for PureStruct
impl Unpin for PureStruct
impl UnsafeUnpin for PureStruct
impl UnwindSafe for PureStruct
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