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§
Source§impl<T> FloatHint<T>where
T: Display,
impl<T> FloatHint<T>where
T: Display,
pub fn export_info(self) -> ExportInfo
Trait Implementations§
Source§impl<T> From<ExpEasingHint> for FloatHint<T>
impl<T> From<ExpEasingHint> for FloatHint<T>
Source§fn from(hint: ExpEasingHint) -> Self
fn from(hint: ExpEasingHint) -> Self
Converts to this type from the input type.
Source§impl<T> From<RangeInclusive<T>> for FloatHint<T>where
T: Display,
impl<T> From<RangeInclusive<T>> for FloatHint<T>where
T: Display,
Source§fn from(range: RangeInclusive<T>) -> Self
fn from(range: RangeInclusive<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for FloatHint<T>where
T: Freeze,
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§
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