Struct domain::rdata::dnssec::RtypeBitmap
source · pub struct RtypeBitmap<Octs>(/* private fields */);
Implementations§
source§impl<Octs> RtypeBitmap<Octs>
impl<Octs> RtypeBitmap<Octs>
source§impl<Octs: AsRef<[u8]>> RtypeBitmap<Octs>
impl<Octs: AsRef<[u8]>> RtypeBitmap<Octs>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn iter(&self) -> RtypeBitmapIter<'_> ⓘ
pub fn contains(&self, rtype: Rtype) -> bool
pub fn parse<'a, Src: Octets<Range<'a> = Octs> + ?Sized>( parser: &mut Parser<'a, Src>, ) -> Result<Self, ParseError>
pub fn compose_len(&self) -> u16
pub fn compose<Target: OctetsBuilder + ?Sized>( &self, target: &mut Target, ) -> Result<(), Target::AppendError>
Trait Implementations§
source§impl<T, Octs: AsRef<T>> AsRef<T> for RtypeBitmap<Octs>
impl<T, Octs: AsRef<T>> AsRef<T> for RtypeBitmap<Octs>
source§impl<O, OO> CanonicalOrd<RtypeBitmap<OO>> for RtypeBitmap<O>
impl<O, OO> CanonicalOrd<RtypeBitmap<OO>> for RtypeBitmap<O>
source§fn canonical_cmp(&self, other: &RtypeBitmap<OO>) -> Ordering
fn canonical_cmp(&self, other: &RtypeBitmap<OO>) -> Ordering
Returns the canonical ordering between
self
and other
.source§fn canonical_lt(&self, other: &Rhs) -> bool
fn canonical_lt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than other
.source§fn canonical_le(&self, other: &Rhs) -> bool
fn canonical_le(&self, other: &Rhs) -> bool
Returns whether
self
is canonically less than or equal to other
.source§fn canonical_gt(&self, other: &Rhs) -> bool
fn canonical_gt(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than other
.source§fn canonical_ge(&self, other: &Rhs) -> bool
fn canonical_ge(&self, other: &Rhs) -> bool
Returns whether
self
is canonically greater than or equal to other
.source§impl<Octs: Clone> Clone for RtypeBitmap<Octs>
impl<Octs: Clone> Clone for RtypeBitmap<Octs>
source§fn clone(&self) -> RtypeBitmap<Octs>
fn clone(&self) -> RtypeBitmap<Octs>
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, Octs: AsRef<[u8]>> IntoIterator for &'a RtypeBitmap<Octs>
impl<'a, Octs: AsRef<[u8]>> IntoIterator for &'a RtypeBitmap<Octs>
source§impl<Octs, SrcOcts> OctetsFrom<RtypeBitmap<SrcOcts>> for RtypeBitmap<Octs>where
Octs: OctetsFrom<SrcOcts>,
impl<Octs, SrcOcts> OctetsFrom<RtypeBitmap<SrcOcts>> for RtypeBitmap<Octs>where
Octs: OctetsFrom<SrcOcts>,
type Error = <Octs as OctetsFrom<SrcOcts>>::Error
source§fn try_octets_from(source: RtypeBitmap<SrcOcts>) -> Result<Self, Self::Error>
fn try_octets_from(source: RtypeBitmap<SrcOcts>) -> Result<Self, Self::Error>
Performs the conversion.
source§impl<O: AsRef<[u8]>> Ord for RtypeBitmap<O>
impl<O: AsRef<[u8]>> Ord for RtypeBitmap<O>
source§impl<O, OO> PartialEq<RtypeBitmap<OO>> for RtypeBitmap<O>
impl<O, OO> PartialEq<RtypeBitmap<OO>> for RtypeBitmap<O>
source§impl<O, OO> PartialOrd<RtypeBitmap<OO>> for RtypeBitmap<O>
impl<O, OO> PartialOrd<RtypeBitmap<OO>> for RtypeBitmap<O>
impl<O: AsRef<[u8]>> Eq for RtypeBitmap<O>
Auto Trait Implementations§
impl<Octs> Freeze for RtypeBitmap<Octs>where
Octs: Freeze,
impl<Octs> RefUnwindSafe for RtypeBitmap<Octs>where
Octs: RefUnwindSafe,
impl<Octs> Send for RtypeBitmap<Octs>where
Octs: Send,
impl<Octs> Sync for RtypeBitmap<Octs>where
Octs: Sync,
impl<Octs> Unpin for RtypeBitmap<Octs>where
Octs: Unpin,
impl<Octs> UnwindSafe for RtypeBitmap<Octs>where
Octs: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.