pub struct BytesOpt(/* private fields */);
Implementations§
Trait Implementations§
source§impl Entity for BytesOpt
impl Entity for BytesOpt
type Builder = BytesOptBuilder
const NAME: &'static str = "BytesOpt"
fn new_unchecked(data: Bytes) -> BytesOpt
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> Result<BytesOpt, VerificationError>
fn from_compatible_slice(slice: &[u8]) -> Result<BytesOpt, VerificationError>
fn new_builder() -> <BytesOpt as Entity>::Builder
fn as_builder(self) -> <BytesOpt as Entity>::Builder
source§impl Ord for BytesOpt
impl Ord for BytesOpt
source§impl PartialEq for BytesOpt
impl PartialEq for BytesOpt
source§impl PartialOrd for BytesOpt
impl PartialOrd for BytesOpt
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BytesOpt
Auto Trait Implementations§
impl RefUnwindSafe for BytesOpt
impl Send for BytesOpt
impl Sync for BytesOpt
impl Unpin for BytesOpt
impl UnwindSafe for BytesOpt
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