pub struct OptionsBuilder { /* private fields */ }
Expand description
Implementations§
Source§impl OptionsBuilder
impl OptionsBuilder
Sourcepub fn loose(self, loose: bool) -> Self
pub fn loose(self, loose: bool) -> Self
Sets the loose
option. Refer to Options.loose.
Sourcepub fn include_prerelease(self, include: bool) -> Self
pub fn include_prerelease(self, include: bool) -> Self
Sets the include_prerelease
option. Refer to Options.include_prerelease.
pub fn build(self) -> Options
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptionsBuilder
impl RefUnwindSafe for OptionsBuilder
impl Send for OptionsBuilder
impl Sync for OptionsBuilder
impl Unpin for OptionsBuilder
impl UnwindSafe for OptionsBuilder
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