pub struct StringBuffer<'a> { /* private fields */ }
Expand description

A buffered String suitable for sending across as a message

Implementations§

Create a new StringBuffer with no backing. This will get resized as soon as data is written to it.

Create a new StringBuffer with enough space to hold usize characters

Clear the contents of this String and set the length to 0

Safety

This can turn any MemoryMessage into a StringBuffer, so ensure that this function is only called when the contents are a StringBuffer

Safety

This can turn any MemoryMessage into a StringBuffer, so ensure that this function is only called when the contents are a StringBuffer

Perform a mutable lend of this String to the server.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Writes a string slice into this writer, returning whether the write succeeded. Read more
Writes a char into this writer, returning whether the write succeeded. Read more
Glue for usage of the write! macro with implementors of this trait. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.