pub struct Slot(pub u64);Expand description
One scalar value: unsigned integer, sign-extended signed integer, float bits or 0/1.
Tuple Fields§
§0: u64Implementations§
Source§impl Slot
impl Slot
pub fn from_bool(value: bool) -> Self
pub fn from_u8(value: u8) -> Self
pub fn from_u16(value: u16) -> Self
pub fn from_u32(value: u32) -> Self
pub fn from_u64(value: u64) -> Self
pub fn from_i8(value: i8) -> Self
pub fn from_i16(value: i16) -> Self
pub fn from_i32(value: i32) -> Self
pub fn from_i64(value: i64) -> Self
pub fn from_f32(value: f32) -> Self
pub fn from_f64(value: f64) -> Self
pub fn as_bool(self) -> bool
pub fn as_u8(self) -> u8
pub fn as_u16(self) -> u16
pub fn as_u32(self) -> u32
pub fn as_u64(self) -> u64
pub fn as_i8(self) -> i8
pub fn as_i16(self) -> i16
pub fn as_i32(self) -> i32
pub fn as_i64(self) -> i64
pub fn as_f32(self) -> f32
pub fn as_f64(self) -> f64
Sourcepub fn to_f64(self, ty: ScalarType) -> f64
pub fn to_f64(self, ty: ScalarType) -> f64
The predictor input representation defined in the protocol.
Trait Implementations§
impl Copy for Slot
impl Eq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnsafeUnpin for Slot
impl UnwindSafe for Slot
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