pub struct SlotRange {
pub from: Option<u16>,
pub to: Option<u16>,
}
Expand description
A range of slots.
§Fields
from
- The first slot in the range. IfNone
, the range starts at the first slot.to
- The last slot in the range. IfNone
, the range ends at the last slot.
Fields§
§from: Option<u16>
§to: Option<u16>
Implementations§
Trait Implementations§
Source§impl Serializable for SlotRange
impl Serializable for SlotRange
Source§fn from_bytes(
data: &[u8],
_: Option<SerializationInfo>,
) -> Result<Self, SerializationError>where
Self: Sized,
fn from_bytes(
data: &[u8],
_: Option<SerializationInfo>,
) -> Result<Self, SerializationError>where
Self: Sized,
Deserializes the data from a vector of bytes. Read more
impl Eq for SlotRange
impl StructuralPartialEq for SlotRange
Auto Trait Implementations§
impl Freeze for SlotRange
impl RefUnwindSafe for SlotRange
impl Send for SlotRange
impl Sync for SlotRange
impl Unpin for SlotRange
impl UnwindSafe for SlotRange
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more