Struct mlua_extras::typed::generator::Definitions
source · pub struct Definitions<'def> { /* private fields */ }
Expand description
A set collection of definition groups
Implementations§
source§impl<'def> Definitions<'def>
impl<'def> Definitions<'def>
sourcepub fn generate() -> DefinitionsBuilder<'def>
pub fn generate() -> DefinitionsBuilder<'def>
Create a definition generator with the given name as the first definition group
pub fn iter(&self) -> Iter<'_, Definition<'def>>
pub fn iter_mut(&mut self) -> IterMut<'_, Definition<'def>>
Trait Implementations§
source§impl<'def> Clone for Definitions<'def>
impl<'def> Clone for Definitions<'def>
source§fn clone(&self) -> Definitions<'def>
fn clone(&self) -> Definitions<'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 Definitions<'def>
impl<'def> Debug for Definitions<'def>
source§impl<'def> Default for Definitions<'def>
impl<'def> Default for Definitions<'def>
source§fn default() -> Definitions<'def>
fn default() -> Definitions<'def>
Returns the “default value” for a type. Read more
source§impl<'def> IntoIterator for Definitions<'def>
impl<'def> IntoIterator for Definitions<'def>
Auto Trait Implementations§
impl<'def> Freeze for Definitions<'def>
impl<'def> RefUnwindSafe for Definitions<'def>
impl<'def> Send for Definitions<'def>
impl<'def> Sync for Definitions<'def>
impl<'def> Unpin for Definitions<'def>
impl<'def> UnwindSafe for Definitions<'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
)