Enum cw_storage_plus::Bound
source · [−]Expand description
Bound is used to defines the two ends of a range, more explicit than Option
Variants
Inclusive(Vec<u8>)
Exclusive(Vec<u8>)
Implementations
sourceimpl Bound
impl Bound
sourcepub fn inclusive<T: Into<Vec<u8>>>(limit: T) -> Self
pub fn inclusive<T: Into<Vec<u8>>>(limit: T) -> Self
Turns optional binary, like Option
sourcepub fn exclusive<T: Into<Vec<u8>>>(limit: T) -> Self
pub fn exclusive<T: Into<Vec<u8>>>(limit: T) -> Self
Turns optional binary, like Option
sourcepub fn inclusive_int<T: Endian>(limit: T) -> Self
pub fn inclusive_int<T: Endian>(limit: T) -> Self
Turns an int, like Option
sourcepub fn exclusive_int<T: Endian>(limit: T) -> Self
pub fn exclusive_int<T: Endian>(limit: T) -> Self
Turns an int, like Option
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnwindSafe for Bound
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