Struct syn_codegen::Punctuated
source · pub struct Punctuated {
pub element: Box<Type>,
pub punct: String,
}
Expand description
Type of a punctuated list.
This refers to syn::punctuated::Punctuated<#element, #punct>
.
The punct string will match one of the keys in the tokens
map.
Fields§
§element: Box<Type>
§punct: String
Trait Implementations§
source§impl Clone for Punctuated
impl Clone for Punctuated
source§fn clone(&self) -> Punctuated
fn clone(&self) -> Punctuated
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 Punctuated
impl Debug for Punctuated
source§impl<'de> Deserialize<'de> for Punctuated
impl<'de> Deserialize<'de> for Punctuated
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for Punctuated
impl PartialEq for Punctuated
source§fn eq(&self, other: &Punctuated) -> bool
fn eq(&self, other: &Punctuated) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Punctuated
impl Serialize for Punctuated
impl StructuralPartialEq for Punctuated
Auto Trait Implementations§
impl Freeze for Punctuated
impl RefUnwindSafe for Punctuated
impl Send for Punctuated
impl Sync for Punctuated
impl Unpin for Punctuated
impl UnwindSafe for Punctuated
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