Enum donet_core::parser::ast::NamedField
source · pub enum NamedField {
ParameterField(ParameterField),
MethodAsField(MethodAsField),
}
Expand description
Paired with the named_field
production in the Context Free Grammar.
Variants§
ParameterField(ParameterField)
MethodAsField(MethodAsField)
Trait Implementations§
source§impl Clone for NamedField
impl Clone for NamedField
source§fn clone(&self) -> NamedField
fn clone(&self) -> NamedField
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 NamedField
impl Debug for NamedField
source§impl From<NamedField> for StructField
impl From<NamedField> for StructField
source§fn from(value: NamedField) -> Self
fn from(value: NamedField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NamedField
impl RefUnwindSafe for NamedField
impl Send for NamedField
impl Sync for NamedField
impl Unpin for NamedField
impl UnwindSafe for NamedField
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)