pub enum DefinitionBody {
Semicolon,
Brace {
elements: Vec<Node<DefinitionBodyElement>>,
},
}Expand description
Generic definition body: ; or { DefinitionBodyElement* }.
Variants§
Trait Implementations§
Source§impl Clone for DefinitionBody
impl Clone for DefinitionBody
Source§fn clone(&self) -> DefinitionBody
fn clone(&self) -> DefinitionBody
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 DefinitionBody
impl Debug for DefinitionBody
impl Eq for DefinitionBody
Source§impl PartialEq for DefinitionBody
impl PartialEq for DefinitionBody
Source§fn eq(&self, other: &DefinitionBody) -> bool
fn eq(&self, other: &DefinitionBody) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefinitionBody
Auto Trait Implementations§
impl Freeze for DefinitionBody
impl RefUnwindSafe for DefinitionBody
impl Send for DefinitionBody
impl Sync for DefinitionBody
impl Unpin for DefinitionBody
impl UnsafeUnpin for DefinitionBody
impl UnwindSafe for DefinitionBody
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