Struct rbml::Doc
[−]
[src]
pub struct Doc<'a> {
pub data: &'a [u8],
pub start: usize,
pub end: usize,
}Unstable (
rustc_private)Common data structures
Fields
data: &'a [u8]
Unstable (
rustc_private)start: usize
Unstable (
rustc_private)end: usize
Unstable (
rustc_private)Methods
impl<'doc> Doc<'doc>[src]
fn new(data: &'doc [u8]) -> Doc<'doc>
fn get(&self, tag: usize) -> Doc<'doc>
fn is_empty(&self) -> bool
fn as_str_slice(&self) -> &'doc str
fn as_str(&self) -> String
Trait Implementations
Derived Implementations
impl<'a> Copy for Doc<'a>[src]
impl<'a> Clone for Doc<'a>[src]
fn clone(&self) -> Doc<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more