pub enum StringBufferError {
BufferFull,
NotEnoughSpaceForStr,
NotEnoughSpaceForChar,
}Expand description
An error type used for the failable push functions on StringBuffer.
Variants§
BufferFull
Returned if the buffer has 0 bytes of free space
NotEnoughSpaceForStr
Returned if the buffer does not have enough free space to fit the given string
NotEnoughSpaceForChar
Returned if the buffer does not have enough free space to fit the given char
Trait Implementations§
Source§impl Clone for StringBufferError
impl Clone for StringBufferError
Source§fn clone(&self) -> StringBufferError
fn clone(&self) -> StringBufferError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StringBufferError
impl Debug for StringBufferError
Source§impl Display for StringBufferError
impl Display for StringBufferError
Source§impl Hash for StringBufferError
impl Hash for StringBufferError
Source§impl PartialEq for StringBufferError
impl PartialEq for StringBufferError
impl Copy for StringBufferError
impl Eq for StringBufferError
impl StructuralPartialEq for StringBufferError
Auto Trait Implementations§
impl Freeze for StringBufferError
impl RefUnwindSafe for StringBufferError
impl Send for StringBufferError
impl Sync for StringBufferError
impl Unpin for StringBufferError
impl UnwindSafe for StringBufferError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more