Struct mlua_extras::typed::generator::Definition
source · pub struct Definition<'def> {
pub name: Cow<'def, str>,
pub entries: Vec<Entry<'def>>,
}Expand description
A named group of definition entries
This is commonly represented as an individual definition file
Fields§
§name: Cow<'def, str>§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 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<'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
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
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)