pub struct ExtensionRef<'a> {
pub kind: i8,
pub data: &'a [u8],
}Expand description
Represents ext format. This is also available with no_std to borrow data.
Fields§
§kind: i8§data: &'a [u8]Implementations§
Trait Implementations§
Source§impl<'a> Clone for ExtensionRef<'a>
impl<'a> Clone for ExtensionRef<'a>
Source§fn clone(&self) -> ExtensionRef<'a>
fn clone(&self) -> ExtensionRef<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ExtensionRef<'a>
impl<'a> Debug for ExtensionRef<'a>
Source§impl<'de> Deserialize<'de> for ExtensionRef<'de>
impl<'de> Deserialize<'de> for ExtensionRef<'de>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Ord for ExtensionRef<'a>
impl<'a> Ord for ExtensionRef<'a>
Source§fn cmp(&self, other: &ExtensionRef<'a>) -> Ordering
fn cmp(&self, other: &ExtensionRef<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ExtensionRef<'a>
impl<'a> PartialEq for ExtensionRef<'a>
Source§impl<'a> PartialOrd for ExtensionRef<'a>
impl<'a> PartialOrd for ExtensionRef<'a>
Source§impl Serialize for ExtensionRef<'_>
impl Serialize for ExtensionRef<'_>
impl<'a> Eq for ExtensionRef<'a>
impl<'a> StructuralPartialEq for ExtensionRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtensionRef<'a>
impl<'a> RefUnwindSafe for ExtensionRef<'a>
impl<'a> Send for ExtensionRef<'a>
impl<'a> Sync for ExtensionRef<'a>
impl<'a> Unpin for ExtensionRef<'a>
impl<'a> UnwindSafe for ExtensionRef<'a>
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