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