Struct nonymous::view::Label[][src]

pub struct Label<'s> {
    pub source: &'s [u8],
    pub offset: usize,
    // some fields omitted
}
Expand description

A label or pointer (RFC 1035 § 4.1.4).

Examples

use nonymous::view::{Label, View};
let source = b"\x07example";
let (label, rest) = Label::view(source, 0..source.len())?;

Fields

source: &'s [u8]offset: usize

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.