#[repr(transparent)]pub struct QClass {
pub code: U16,
}Available on crate feature
unstable-new only.Expand description
The class of a question.
Fields§
§code: U16The class code.
Implementations§
Trait Implementations§
Source§impl BuildBytes for QClass
impl BuildBytes for QClass
Source§fn build_bytes<'bytes>(
&self,
bytes: &'bytes mut [u8],
) -> Result<&'bytes mut [u8], TruncationError>
fn build_bytes<'bytes>( &self, bytes: &'bytes mut [u8], ) -> Result<&'bytes mut [u8], TruncationError>
Serialize into a byte sequence. Read more
Source§fn built_bytes_size(&self) -> usize
fn built_bytes_size(&self) -> usize
The size of
self when serialized into a byte sequence. Read moreimpl Copy for QClass
impl Eq for QClass
Source§impl Ord for QClass
impl Ord for QClass
1.21.0 (const: unstable) · 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<'bytes> ParseBytes<'bytes> for QClasswhere
U16: ParseBytes<'bytes>,
impl<'bytes> ParseBytes<'bytes> for QClasswhere
U16: ParseBytes<'bytes>,
Source§fn parse_bytes(bytes: &'bytes [u8]) -> Result<Self, ParseError>
fn parse_bytes(bytes: &'bytes [u8]) -> Result<Self, ParseError>
Source§impl ParseBytesZC for QClass
impl ParseBytesZC for QClass
Source§fn parse_bytes_by_ref(bytes: &[u8]) -> Result<&Self, ParseError>
fn parse_bytes_by_ref(bytes: &[u8]) -> Result<&Self, ParseError>
Source§fn parse_bytes_in<C: ParseBytesInPlace>(
container: C,
) -> Result<C::WithParsed<Self>, (C, ParseError)>
fn parse_bytes_in<C: ParseBytesInPlace>( container: C, ) -> Result<C::WithParsed<Self>, (C, ParseError)>
Parse bytes within the given container. Read more
Source§impl PartialOrd for QClass
impl PartialOrd for QClass
Source§impl<'bytes> SplitBytes<'bytes> for QClasswhere
U16: SplitBytes<'bytes>,
impl<'bytes> SplitBytes<'bytes> for QClasswhere
U16: SplitBytes<'bytes>,
Source§fn split_bytes(bytes: &'bytes [u8]) -> Result<(Self, &'bytes [u8]), ParseError>
fn split_bytes(bytes: &'bytes [u8]) -> Result<(Self, &'bytes [u8]), ParseError>
Source§impl SplitBytesZC for QClass
impl SplitBytesZC for QClass
Source§fn split_bytes_by_ref(bytes: &[u8]) -> Result<(&Self, &[u8]), ParseError>
fn split_bytes_by_ref(bytes: &[u8]) -> Result<(&Self, &[u8]), ParseError>
impl StructuralPartialEq for QClass
Source§impl UnsizedCopy for QClass
impl UnsizedCopy for QClass
Source§type Alignment = (<U16 as UnsizedCopy>::Alignment,)
type Alignment = (<U16 as UnsizedCopy>::Alignment,)
A type with the same alignment as
Self. Read moreSource§fn ptr_with_addr(&self, addr: *const ()) -> *const Self
fn ptr_with_addr(&self, addr: *const ()) -> *const Self
Change the address of a pointer to
Self. Read moreSource§fn unsized_copy_into<T: UnsizedCopyFrom<Source = Self>>(&self) -> T
fn unsized_copy_into<T: UnsizedCopyFrom<Source = Self>>(&self) -> T
Copy
self into a new container. Read moreAuto Trait Implementations§
impl Freeze for QClass
impl RefUnwindSafe for QClass
impl Send for QClass
impl Sync for QClass
impl Unpin for QClass
impl UnsafeUnpin for QClass
impl UnwindSafe for QClass
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.