Struct strings::string_buffer::StringBuffer
[−]
[src]
pub struct StringBuffer { pub len: usize, // some fields omitted }
Fields
len: usize
Methods
impl StringBuffer
[src]
fn new() -> StringBuffer
[src]
fn with_capacity(capacity: usize) -> StringBuffer
[src]
fn push_str(&mut self, text: &str)
[src]
fn cur_offset(&self) -> usize
[src]
fn truncate(&mut self, new_len: usize)
[src]
fn chars<'a>(&'a self) -> Chars<'a>
[src]
Trait Implementations
impl FromStr for StringBuffer
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(text: &str) -> Result<StringBuffer, ()>
[src]
Parses a string s
to return a value of this type. Read more
impl Display for StringBuffer
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Debug for StringBuffer
[src]
impl PartialEq for StringBuffer
[src]
fn eq(&self, other: &StringBuffer) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for StringBuffer
[src]
impl Clone for StringBuffer
[src]
fn clone(&self) -> StringBuffer
[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