Struct Slot
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§
§impl Slot
impl Slot
pub fn from_bool(value: bool) -> Slot
pub fn from_u8(value: u8) -> Slot
pub fn from_u16(value: u16) -> Slot
pub fn from_u32(value: u32) -> Slot
pub fn from_u64(value: u64) -> Slot
pub fn from_i8(value: i8) -> Slot
pub fn from_i16(value: i16) -> Slot
pub fn from_i32(value: i32) -> Slot
pub fn from_i64(value: i64) -> Slot
pub fn from_f32(value: f32) -> Slot
pub fn from_f64(value: f64) -> Slot
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
pub 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.