pub struct StructFieldList {
pub fields: Vec<StructField>,
}
Expand description
A list of StructField items
Fields§
§fields: Vec<StructField>
Implementations§
Source§impl StructFieldList
impl StructFieldList
pub fn push_scalar(&mut self, s: &Ident)
pub fn push_vecscalar(&mut self, s: &Ident)
pub fn push_point(&mut self, s: &Ident)
pub fn push_vecpoint(&mut self, s: &Ident)
pub fn push_vars(&mut self, vars: &VarDict, for_instance: bool)
Sourcepub fn field_decls(&self) -> impl ToTokens
pub fn field_decls(&self) -> impl ToTokens
Output a ToTokens of the fields as they would appear in a struct definition
Sourcepub fn field_list(&self) -> impl ToTokens
pub fn field_list(&self) -> impl ToTokens
Output a ToTokens of the list of fields
Trait Implementations§
Source§impl Default for StructFieldList
impl Default for StructFieldList
Source§fn default() -> StructFieldList
fn default() -> StructFieldList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StructFieldList
impl RefUnwindSafe for StructFieldList
impl !Send for StructFieldList
impl !Sync for StructFieldList
impl Unpin for StructFieldList
impl UnwindSafe for StructFieldList
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