pub struct OptBuilder<T, P>where
T: TextExt,{ /* private fields */ }Expand description
Builder for Opt object.
Implementations§
Source§impl<T, P> OptBuilder<T, P>where
T: TextExt,
impl<T, P> OptBuilder<T, P>where
T: TextExt,
Sourcepub fn get_description(&self) -> Option<&T>
pub fn get_description(&self) -> Option<&T>
get description field value.
Sourcepub fn set_description(self, value: Option<impl Into<T>>) -> Self
pub fn set_description(self, value: Option<impl Into<T>>) -> Self
set description field value.
Sourcepub fn description(self, value: impl Into<T>) -> Self
pub fn description(self, value: impl Into<T>) -> Self
set description field value.
Trait Implementations§
Source§impl<T, P: Debug> Debug for OptBuilder<T, P>
impl<T, P: Debug> Debug for OptBuilder<T, P>
Auto Trait Implementations§
impl<T, P> Freeze for OptBuilder<T, P>where
T: Freeze,
impl<T, P> RefUnwindSafe for OptBuilder<T, P>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, P> Send for OptBuilder<T, P>
impl<T, P> Sync for OptBuilder<T, P>
impl<T, P> Unpin for OptBuilder<T, P>
impl<T, P> UnsafeUnpin for OptBuilder<T, P>where
T: UnsafeUnpin,
impl<T, P> UnwindSafe for OptBuilder<T, P>where
P: UnwindSafe,
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