pub struct ProblemGroupBuilder { /* private fields */ }
Expand description
Builder for ProblemGroup
.
Implementations§
Source§impl ProblemGroupBuilder
impl ProblemGroupBuilder
pub fn name<VALUE: Into<&'static str>>(&mut self, value: VALUE) -> &mut Self
pub fn try_name<VALUE: TryInto<&'static str>>( &mut self, value: VALUE, ) -> Result<&mut Self, VALUE::Error>
pub fn display_name<VALUE: Into<&'static str>>( &mut self, value: VALUE, ) -> &mut Self
pub fn try_display_name<VALUE: TryInto<&'static str>>( &mut self, value: VALUE, ) -> Result<&mut Self, VALUE::Error>
pub fn parent<VALUE: Into<Option<Box<ProblemGroup>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn try_parent<VALUE: TryInto<Option<Box<ProblemGroup>>>>( &mut self, value: VALUE, ) -> Result<&mut Self, VALUE::Error>
Sourcepub fn build(&self) -> Result<ProblemGroup, ProblemGroupBuilderError>
pub fn build(&self) -> Result<ProblemGroup, ProblemGroupBuilderError>
Trait Implementations§
Source§impl Clone for ProblemGroupBuilder
impl Clone for ProblemGroupBuilder
Source§fn clone(&self) -> ProblemGroupBuilder
fn clone(&self) -> ProblemGroupBuilder
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 moreAuto Trait Implementations§
impl Freeze for ProblemGroupBuilder
impl RefUnwindSafe for ProblemGroupBuilder
impl Send for ProblemGroupBuilder
impl Sync for ProblemGroupBuilder
impl Unpin for ProblemGroupBuilder
impl UnwindSafe for ProblemGroupBuilder
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