Struct svgparser::TextFrame
[−]
[src]
pub struct TextFrame<'a> { /* fields omitted */ }
An immutable string slice.
Unlike &str
contains a full original string.
Methods
impl<'a> TextFrame<'a>
[src]
fn from_str(text: &str) -> TextFrame
[src]
Constructs a new TextFrame
from string.
fn from_substr(text: &str, start: usize, end: usize) -> TextFrame
[src]
Constructs a new TextFrame
from substring.
fn start(&self) -> usize
[src]
Returns a start position of the frame.
fn end(&self) -> usize
[src]
Returns a end position of the frame.
fn len(&self) -> usize
[src]
Returns a length of the frame.
fn full_len(&self) -> usize
[src]
Returns a length of the frame underling string.
fn slice(&self) -> &'a str
[src]
Returns a frame slice.
fn full_slice(&self) -> &'a str
[src]
Returns an underling string.
Trait Implementations
impl<'a> PartialEq for TextFrame<'a>
[src]
fn eq(&self, __arg_0: &TextFrame<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TextFrame<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> Clone for TextFrame<'a>
[src]
fn clone(&self) -> TextFrame<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more