pub struct LooseFloat(pub [u8; 7]);Expand description
Type to hold anything in Slosh that can be represented as a slosh float value: [u8; 7].
Public type used by rust native -> slosh bridge macro to represent arguments that can be loosely cast to an int.
Can represent SlRefInto Value types:
- Byte
- Int
- Float
- String
- CodePoint
- CharCluster
- CharClusterLong
- Symbol
- Keyword
- StringConst
Always returns a Value::Float type.
Tuple Fields§
§0: [u8; 7]Trait Implementations§
Source§impl From<LooseFloat> for [u8; 7]
impl From<LooseFloat> for [u8; 7]
Source§fn from(value: LooseFloat) -> Self
fn from(value: LooseFloat) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LooseFloat
impl RefUnwindSafe for LooseFloat
impl Send for LooseFloat
impl Sync for LooseFloat
impl Unpin for LooseFloat
impl UnwindSafe for LooseFloat
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