Skip to main content

Domain1DBuilder

Struct Domain1DBuilder 

Source
pub struct Domain1DBuilder<WV, S: State = Empty>
where WV: PartialEq + PartialOrd,
{ /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<WV, S: State> Domain1DBuilder<WV, S>
where WV: PartialEq + PartialOrd,

Source

pub fn build(self) -> Domain1D<WV>
where S: IsComplete,

Finish building and return the requested object

Source

pub fn lower(self, value: WV) -> Domain1DBuilder<WV, SetLower<S>>
where S::Lower: IsUnset,

Optional (Some / Option setters). Domain lower bound.

Source

pub fn maybe_lower(self, value: Option<WV>) -> Domain1DBuilder<WV, SetLower<S>>
where S::Lower: IsUnset,

Optional (Some / Option setters). Domain lower bound.

Source

pub fn upper(self, value: WV) -> Domain1DBuilder<WV, SetUpper<S>>
where S::Upper: IsUnset,

Optional (Some / Option setters). Domain upper bound.

Source

pub fn maybe_upper(self, value: Option<WV>) -> Domain1DBuilder<WV, SetUpper<S>>
where S::Upper: IsUnset,

Optional (Some / Option setters). Domain upper bound.

Auto Trait Implementations§

§

impl<WV, S> Freeze for Domain1DBuilder<WV, S>
where WV: Freeze,

§

impl<WV, S> RefUnwindSafe for Domain1DBuilder<WV, S>
where WV: RefUnwindSafe,

§

impl<WV, S> Send for Domain1DBuilder<WV, S>
where WV: Send,

§

impl<WV, S> Sync for Domain1DBuilder<WV, S>
where WV: Sync,

§

impl<WV, S> Unpin for Domain1DBuilder<WV, S>
where WV: Unpin,

§

impl<WV, S> UnsafeUnpin for Domain1DBuilder<WV, S>
where WV: UnsafeUnpin,

§

impl<WV, S> UnwindSafe for Domain1DBuilder<WV, S>
where WV: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.