Struct widestring::NulError [−][src]
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
impl<C: UChar> NulError<C>
[src]
pub fn nul_position(&self) -> usize
[src]
Returns the position of the nul value in the slice that was provided to U16CString
.
pub fn into_vec(self) -> 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 + UChar> Clone for NulError<C>
[src]
impl<C: Debug + UChar> Debug for NulError<C>
[src]
impl<C: UChar> Display for NulError<C>
[src]
impl<C: Eq + UChar> Eq for NulError<C>
[src]
impl<C: UChar> Error for NulError<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: UChar> Into<Vec<C, Global>> for NulError<C>
[src]
impl<C: PartialEq + UChar> PartialEq<NulError<C>> for NulError<C>
[src]
impl<C: UChar> StructuralEq for NulError<C>
[src]
impl<C: UChar> StructuralPartialEq for NulError<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for NulError<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for NulError<C> where
C: Send,
C: Send,
impl<C> Sync for NulError<C> where
C: Sync,
C: Sync,
impl<C> Unpin for NulError<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for NulError<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>,