pub struct Definition<'def> {
pub entries: Vec<Entry<'def>>,
}
Expand description
A named group of definition entries
This is commonly represented as an individual definition file
Fields§
§entries: Vec<Entry<'def>>
Implementations§
Trait Implementations§
Source§impl<'def> Clone for Definition<'def>
impl<'def> Clone for Definition<'def>
Source§fn clone(&self) -> Definition<'def>
fn clone(&self) -> Definition<'def>
Returns a duplicate 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<'def> Debug for Definition<'def>
impl<'def> Debug for Definition<'def>
Source§impl<'def> Default for Definition<'def>
impl<'def> Default for Definition<'def>
Source§fn default() -> Definition<'def>
fn default() -> Definition<'def>
Returns the “default value” for a type. Read more
Source§impl<'def> From<DefinitionBuilder<'def>> for Definition<'def>
impl<'def> From<DefinitionBuilder<'def>> for Definition<'def>
Source§fn from(value: DefinitionBuilder<'def>) -> Self
fn from(value: DefinitionBuilder<'def>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'def> Freeze for Definition<'def>
impl<'def> RefUnwindSafe for Definition<'def>
impl<'def> Send for Definition<'def>
impl<'def> Sync for Definition<'def>
impl<'def> Unpin for Definition<'def>
impl<'def> UnwindSafe for Definition<'def>
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