Struct MorphOptionsBuilder
pub struct MorphOptionsBuilder<S = Empty>where
S: State,{ /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
§impl<S> MorphOptionsBuilder<S>where
S: State,
impl<S> MorphOptionsBuilder<S>where
S: State,
pub fn build(self) -> MorphOptionswhere
S: IsComplete,
pub fn build(self) -> MorphOptionswhere
S: IsComplete,
Finish building and return the requested object
pub fn anchor(self, value: Point) -> MorphOptionsBuilder<SetAnchor<S>>where
<S as State>::Anchor: IsUnset,
pub fn anchor(self, value: Point) -> MorphOptionsBuilder<SetAnchor<S>>where
<S as State>::Anchor: IsUnset,
pub fn maybe_anchor(
self,
value: Option<Point>,
) -> MorphOptionsBuilder<SetAnchor<S>>where
<S as State>::Anchor: IsUnset,
pub fn maybe_anchor(
self,
value: Option<Point>,
) -> MorphOptionsBuilder<SetAnchor<S>>where
<S as State>::Anchor: IsUnset,
pub fn iterations(self, value: usize) -> MorphOptionsBuilder<SetIterations<S>>where
<S as State>::Iterations: IsUnset,
pub fn iterations(self, value: usize) -> MorphOptionsBuilder<SetIterations<S>>where
<S as State>::Iterations: IsUnset,
pub fn maybe_iterations(
self,
value: Option<usize>,
) -> MorphOptionsBuilder<SetIterations<S>>where
<S as State>::Iterations: IsUnset,
pub fn maybe_iterations(
self,
value: Option<usize>,
) -> MorphOptionsBuilder<SetIterations<S>>where
<S as State>::Iterations: IsUnset,
pub fn border_type(
self,
value: BorderType,
) -> MorphOptionsBuilder<SetBorderType<S>>where
<S as State>::BorderType: IsUnset,
pub fn border_type(
self,
value: BorderType,
) -> MorphOptionsBuilder<SetBorderType<S>>where
<S as State>::BorderType: IsUnset,
pub fn maybe_border_type(
self,
value: Option<BorderType>,
) -> MorphOptionsBuilder<SetBorderType<S>>where
<S as State>::BorderType: IsUnset,
pub fn maybe_border_type(
self,
value: Option<BorderType>,
) -> MorphOptionsBuilder<SetBorderType<S>>where
<S as State>::BorderType: IsUnset,
pub fn border_value(
self,
value: Vec<Scalar>,
) -> MorphOptionsBuilder<SetBorderValue<S>>where
<S as State>::BorderValue: IsUnset,
pub fn border_value(
self,
value: Vec<Scalar>,
) -> MorphOptionsBuilder<SetBorderValue<S>>where
<S as State>::BorderValue: IsUnset,
pub fn maybe_border_value(
self,
value: Option<Vec<Scalar>>,
) -> MorphOptionsBuilder<SetBorderValue<S>>where
<S as State>::BorderValue: IsUnset,
pub fn maybe_border_value(
self,
value: Option<Vec<Scalar>>,
) -> MorphOptionsBuilder<SetBorderValue<S>>where
<S as State>::BorderValue: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for MorphOptionsBuilder<S>
impl<S> RefUnwindSafe for MorphOptionsBuilder<S>
impl<S> Send for MorphOptionsBuilder<S>
impl<S> Sync for MorphOptionsBuilder<S>
impl<S> Unpin for MorphOptionsBuilder<S>
impl<S> UnsafeUnpin for MorphOptionsBuilder<S>
impl<S> UnwindSafe for MorphOptionsBuilder<S>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<K, Q> Comparable<Q> for K
impl<K, Q> Comparable<Q> for K
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more