Struct rbml::DocUnstable [-] [+] [src]

pub struct Doc<'a> {
    pub data: &'a [u8],
    pub start: usize,
    pub end: usize,
}

Common data structures

Fields

data
start
end

Methods

impl<'doc> Doc<'doc>

fn new(data: &'doc [u8]) -> Doc<'doc>

fn get<'a>(&'a self, tag: usize) -> Doc<'a>

fn is_empty(&self) -> bool

fn as_str_slice<'a>(&'a self) -> &'a str

fn as_str(&self) -> String

Trait Implementations

Derived Implementations

impl<'a> Copy for Doc<'a>

impl<'a> Clone for Doc<'a>

fn clone(&self) -> Doc<'a>

fn clone_from(&mut self, source: &Self)