pub enum Building<T> {
Undefined,
Set(T),
}
Expand description
Builder field type for Panic
or Result
mode.
Variants§
Implementations§
Source§impl<T> Building<T>
impl<T> Building<T>
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Check if Building::Undefined
.
Sourcepub fn unwrap(self) -> T
pub fn unwrap(self) -> T
Consume to return set value.
It shouldn’t be called for Building::Undefined
.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Building<T>where
T: Freeze,
impl<T> RefUnwindSafe for Building<T>where
T: RefUnwindSafe,
impl<T> Send for Building<T>where
T: Send,
impl<T> Sync for Building<T>where
T: Sync,
impl<T> Unpin for Building<T>where
T: Unpin,
impl<T> UnwindSafe for Building<T>where
T: UnwindSafe,
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