pub enum ReqId {
U64(u64),
Bytes(Range<usize>),
}Variants§
Implementations§
Source§impl ReqId
impl ReqId
Sourcepub fn as_u64_mut(&mut self) -> Option<&mut u64>
pub fn as_u64_mut(&mut self) -> Option<&mut u64>
Optionally returns mutable references to the inner fields if this is a ReqId::U64, otherwise None
Sourcepub fn as_u64(&self) -> Option<&u64>
pub fn as_u64(&self) -> Option<&u64>
Optionally returns references to the inner fields if this is a ReqId::U64, otherwise None
Sourcepub fn into_u64(self) -> Result<u64, Self>
pub fn into_u64(self) -> Result<u64, Self>
Returns the inner fields if this is a ReqId::U64, otherwise returns back the enum in the Err case of the result
Sourcepub fn as_bytes_mut(&mut self) -> Option<&mut Range<usize>>
pub fn as_bytes_mut(&mut self) -> Option<&mut Range<usize>>
Optionally returns mutable references to the inner fields if this is a ReqId::Bytes, otherwise None
Sourcepub fn as_bytes(&self) -> Option<&Range<usize>>
pub fn as_bytes(&self) -> Option<&Range<usize>>
Optionally returns references to the inner fields if this is a ReqId::Bytes, otherwise None
Sourcepub fn into_bytes(self) -> Result<Range<usize>, Self>
pub fn into_bytes(self) -> Result<Range<usize>, Self>
Returns the inner fields if this is a ReqId::Bytes, otherwise returns back the enum in the Err case of the result
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReqId
impl RefUnwindSafe for ReqId
impl Send for ReqId
impl Sync for ReqId
impl Unpin for ReqId
impl UnwindSafe for ReqId
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