Struct syn::DataStruct [−][src]
pub struct DataStruct {
pub struct_token: Struct,
pub fields: Fields,
pub semi_token: Option<Semi>,
}Expand description
A struct input to a proc_macro_derive macro.
This type is available only if Syn is built with the "derive"
feature.
Fields
struct_token: Structfields: Fieldssemi_token: Option<Semi>Trait Implementations
impl Clone for DataStruct[src]
impl Clone for DataStruct[src]impl Debug for DataStruct[src]
impl Debug for DataStruct[src]impl From<DataStruct> for Data[src]
impl From<DataStruct> for Data[src]fn from(e: DataStruct) -> Data[src]
fn from(e: DataStruct) -> Data[src]Performs the conversion.
impl Hash for DataStruct[src]
impl Hash for DataStruct[src]impl PartialEq<DataStruct> for DataStruct[src]
impl PartialEq<DataStruct> for DataStruct[src]impl Eq for DataStruct[src]
Auto Trait Implementations
impl RefUnwindSafe for DataStruct
impl !Send for DataStruct
impl !Sync for DataStruct
impl Unpin for DataStruct
impl UnwindSafe for DataStruct
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more