pub enum ConstraintBoolOrRange<T> {
Bool(bool),
Single(Option<T>),
Range {
min: Option<T>,
max: Option<T>,
exact: Option<T>,
ideal: Option<T>,
},
}Variants§
Implementations§
Source§impl<T> ConstraintBoolOrRange<T>
impl<T> ConstraintBoolOrRange<T>
pub fn to_jsvalue(&self) -> JsValue
Trait Implementations§
Source§impl<T: Clone> Clone for ConstraintBoolOrRange<T>
impl<T: Clone> Clone for ConstraintBoolOrRange<T>
Source§fn clone(&self) -> ConstraintBoolOrRange<T>
fn clone(&self) -> ConstraintBoolOrRange<T>
Returns a duplicate 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 moreSource§impl<T> ConstraintRangeBuilder<T> for ConstraintBoolOrRange<T>
impl<T> ConstraintRangeBuilder<T> for ConstraintBoolOrRange<T>
Source§impl<T: Debug> Debug for ConstraintBoolOrRange<T>
impl<T: Debug> Debug for ConstraintBoolOrRange<T>
Source§impl<T: Default> Default for ConstraintBoolOrRange<T>
impl<T: Default> Default for ConstraintBoolOrRange<T>
Source§impl<T> From<ConstraintRange<T>> for ConstraintBoolOrRange<T>
impl<T> From<ConstraintRange<T>> for ConstraintBoolOrRange<T>
Source§fn from(value: ConstraintRange<T>) -> Self
fn from(value: ConstraintRange<T>) -> Self
Converts to this type from the input type.
Source§impl<T> From<bool> for ConstraintBoolOrRange<T>
impl<T> From<bool> for ConstraintBoolOrRange<T>
Auto Trait Implementations§
impl<T> Freeze for ConstraintBoolOrRange<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConstraintBoolOrRange<T>where
T: RefUnwindSafe,
impl<T> Send for ConstraintBoolOrRange<T>where
T: Send,
impl<T> Sync for ConstraintBoolOrRange<T>where
T: Sync,
impl<T> Unpin for ConstraintBoolOrRange<T>where
T: Unpin,
impl<T> UnsafeUnpin for ConstraintBoolOrRange<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ConstraintBoolOrRange<T>where
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.