pub enum BSStringError {
TooLong,
AllocFailed,
InteriorNul,
}
Variants§
TooLong
string is too long to fit in a u16
AllocFailed
allocation failed
InteriorNul
string contains interior null bytes
Trait Implementations§
Source§impl Clone for BSStringError
impl Clone for BSStringError
Source§fn clone(&self) -> BSStringError
fn clone(&self) -> BSStringError
Returns a copy 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 BSStringError
impl Debug for BSStringError
Source§impl Display for BSStringError
impl Display for BSStringError
Source§impl Error for BSStringError
impl Error for BSStringError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for BSStringError
impl PartialEq for BSStringError
impl Copy for BSStringError
impl Eq for BSStringError
impl StructuralPartialEq for BSStringError
Auto Trait Implementations§
impl Freeze for BSStringError
impl RefUnwindSafe for BSStringError
impl Send for BSStringError
impl Sync for BSStringError
impl Unpin for BSStringError
impl UnwindSafe for BSStringError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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