pub struct DefinitionsBuilder { /* private fields */ }Expand description
Generate definition entries and definition groups
Implementations§
Source§impl DefinitionsBuilder
impl DefinitionsBuilder
Sourcepub fn define(
self,
name: impl Display,
definition: impl Into<Definition>,
) -> Self
pub fn define( self, name: impl Display, definition: impl Into<Definition>, ) -> Self
Creat a new named definition group
Sourcepub fn finish(self) -> Definitions
pub fn finish(self) -> Definitions
Finish defining definition groups and collect them
Trait Implementations§
Source§impl Default for DefinitionsBuilder
impl Default for DefinitionsBuilder
Source§fn default() -> DefinitionsBuilder
fn default() -> DefinitionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefinitionsBuilder
impl RefUnwindSafe for DefinitionsBuilder
impl Send for DefinitionsBuilder
impl Sync for DefinitionsBuilder
impl Unpin for DefinitionsBuilder
impl UnsafeUnpin for DefinitionsBuilder
impl UnwindSafe for DefinitionsBuilder
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more