Struct widestring::MissingNulError [−][src]
An error returned from UCString
and UCStr
to indicate that a terminating nul value
was missing.
The error optionally returns the ownership of the invalid vector whenever a vector was owned.
Implementations
impl<C: UChar> MissingNulError<C>
[src]
pub fn into_vec(self) -> Option<Vec<C>>
[src]
Consumes this error, returning the underlying vector of u16
values which generated the
error in the first place.
Trait Implementations
impl<C: Clone> Clone for MissingNulError<C>
[src]
fn clone(&self) -> MissingNulError<C>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for MissingNulError<C>
[src]
impl<C: UChar> Display for MissingNulError<C>
[src]
impl<C: Eq> Eq for MissingNulError<C>
[src]
impl<C: UChar> Error for MissingNulError<C>
[src]
fn description(&self) -> &str
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<C: PartialEq> PartialEq<MissingNulError<C>> for MissingNulError<C>
[src]
fn eq(&self, other: &MissingNulError<C>) -> bool
[src]
fn ne(&self, other: &MissingNulError<C>) -> bool
[src]
impl<C> StructuralEq for MissingNulError<C>
[src]
impl<C> StructuralPartialEq for MissingNulError<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for MissingNulError<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for MissingNulError<C> where
C: Send,
C: Send,
impl<C> Sync for MissingNulError<C> where
C: Sync,
C: Sync,
impl<C> Unpin for MissingNulError<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for MissingNulError<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,