pub struct OverridableBuilder { /* private fields */ }
Expand description
A builder which creates an instance of OverridableBuilt
.
Use OverridableBuilder::new()
to start the builder. Calling build()
consumes the builder, returning the completed item. Before calling build()
, you can modify values the builder will use by calling any of the other functions. For this builder, you must call all of the following functions at least once before calling build()
, or you will receive a compilation error:
Here is a minimal example:
let instance = OverridableBuilder::new().build();
Implementations§
Source§impl OverridableBuilder
impl OverridableBuilder
pub fn defaults_to_zero(self, value: i32) -> Self
Source§impl OverridableBuilder
impl OverridableBuilder
pub fn build(self) -> OverridableBuilt
Auto Trait Implementations§
impl Freeze for OverridableBuilder
impl RefUnwindSafe for OverridableBuilder
impl Send for OverridableBuilder
impl Sync for OverridableBuilder
impl Unpin for OverridableBuilder
impl UnwindSafe for OverridableBuilder
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