pub enum FloatHint<T> {
Range(RangeHint<T>),
ExpRange(RangeHint<T>),
ExpEasing(ExpEasingHint),
}
Expand description
Possible hints for floats.
Variants
Range(RangeHint<T>)
Hints that an integer or float property should be within a range.
ExpRange(RangeHint<T>)
Hints that an integer or float property should be within an exponential range.
ExpEasing(ExpEasingHint)
Hints that a float property should be edited via an exponential easing function.
Implementations
sourceimpl<T> FloatHint<T> where
T: Display,
impl<T> FloatHint<T> where
T: Display,
pub fn export_info(self) -> ExportInfo
Trait Implementations
sourceimpl<T> From<ExpEasingHint> for FloatHint<T>
impl<T> From<ExpEasingHint> for FloatHint<T>
sourcefn from(hint: ExpEasingHint) -> Self
fn from(hint: ExpEasingHint) -> Self
Performs the conversion.
sourceimpl<T> From<RangeInclusive<T>> for FloatHint<T> where
T: Display,
impl<T> From<RangeInclusive<T>> for FloatHint<T> where
T: Display,
sourcefn from(range: RangeInclusive<T>) -> Self
fn from(range: RangeInclusive<T>) -> Self
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for FloatHint<T> where
T: RefUnwindSafe,
impl<T> Send for FloatHint<T> where
T: Send,
impl<T> Sync for FloatHint<T> where
T: Sync,
impl<T> Unpin for FloatHint<T> where
T: Unpin,
impl<T> UnwindSafe for FloatHint<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more