[−][src]Struct domain::base::octets::Octets1024
A fixed length octet buffer.
The type functions both as an octets sequence and an octets builder atop a fixed size bytes array.
Implementations
impl Octets1024
[src]
pub fn new() -> Self
[src]
Creates a new empty value.
pub fn as_slice(&self) -> &[u8]
[src]
Returns the contents as an octet slice.
pub fn as_slice_mut(&mut self) -> &mut [u8]
[src]
Returns the contents as a mutable octet slice.
Trait Implementations
impl AsMut<[u8]> for Octets1024
[src]
impl AsRef<[u8]> for Octets1024
[src]
impl Borrow<[u8]> for Octets1024
[src]
impl BorrowMut<[u8]> for Octets1024
[src]
fn borrow_mut(&mut self) -> &mut [u8]
[src]
impl Clone for Octets1024
[src]
fn clone(&self) -> Octets1024
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Octets1024
[src]
impl Default for Octets1024
[src]
impl Deref for Octets1024
[src]
impl DerefMut for Octets1024
[src]
impl EmptyBuilder for Octets1024
[src]
fn empty() -> Self
[src]
fn with_capacity(_capacity: usize) -> Self
[src]
impl Eq for Octets1024
[src]
impl FromBuilder for Octets1024
[src]
type Builder = Self
The type of builder this octets type can be created from.
fn from_builder(builder: Self::Builder) -> Self
[src]
impl Hash for Octets1024
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoBuilder for Octets1024
[src]
type Builder = Self
The type of octets builder this octets type can be converted into. Read more
fn into_builder(self) -> Self::Builder
[src]
impl IntoOctets for Octets1024
[src]
type Octets = Self
The type of the octets the builder can be converted into. Read more
fn into_octets(self) -> Self::Octets
[src]
impl OctetsBuilder for Octets1024
[src]
fn append_slice(&mut self, slice: &[u8]) -> Result<(), ShortBuf>
[src]
fn truncate(&mut self, len: usize)
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
fn append_all<F>(&mut self, op: F) -> Result<(), ShortBuf> where
F: FnOnce(&mut Self) -> Result<(), ShortBuf>,
[src]
F: FnOnce(&mut Self) -> Result<(), ShortBuf>,
fn append_compressed_dname<N: ToDname>(
&mut self,
name: &N
) -> Result<(), ShortBuf>
[src]
&mut self,
name: &N
) -> Result<(), ShortBuf>
fn u16_len_prefixed<F>(&mut self, op: F) -> Result<(), ShortBuf> where
F: FnOnce(&mut Self) -> Result<(), ShortBuf>,
[src]
F: FnOnce(&mut Self) -> Result<(), ShortBuf>,
impl Ord for Octets1024
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<T: AsRef<[u8]>> PartialEq<T> for Octets1024
[src]
impl<T: AsRef<[u8]>> PartialOrd<T> for Octets1024
[src]
fn partial_cmp(&self, other: &T) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a> TryFrom<&'a [u8]> for Octets1024
[src]
Auto Trait Implementations
impl RefUnwindSafe for Octets1024
impl Send for Octets1024
impl Sync for Octets1024
impl Unpin for Octets1024
impl UnwindSafe for Octets1024
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,