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 |
pub struct Doc<'a> { pub data: &'a [u8], pub start: usize, pub end: usize, }
Common data structures
data | |
start | |
end |
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
impl<'a> Copy for Doc<'a>
impl<'a> Clone for Doc<'a>
fn clone(&self) -> Doc<'a>
fn clone_from(&mut self, source: &Self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).