pub struct NulError<C: UChar>(/* private fields */);Expand description
An error returned from UCString to indicate that an invalid nul value was found.
The error indicates the position in the vector where the nul value was found, as well as returning the ownership of the invalid vector.
Implementations§
Trait Implementations§
Source§impl<C: UChar> Error for NulError<C>
impl<C: UChar> Error for NulError<C>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
impl<C: Eq + UChar> Eq for NulError<C>
impl<C: UChar> StructuralPartialEq for NulError<C>
Auto Trait Implementations§
impl<C> Freeze for NulError<C>
impl<C> RefUnwindSafe for NulError<C>where
C: RefUnwindSafe,
impl<C> Send for NulError<C>where
C: Send,
impl<C> Sync for NulError<C>where
C: Sync,
impl<C> Unpin for NulError<C>where
C: Unpin,
impl<C> UnwindSafe for NulError<C>where
C: UnwindSafe,
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