Struct widestring::NulError [] [src]

pub struct NulError(_, _);

An error returned from WideCString 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.


impl NulError

Returns the position of the nul value in the slice that was provided to WideCString.

Consumes this error, returning the underlying vector of u16 values which generated the error in the first place.

Trait Implementations

impl Debug for NulError

Formats the value using the given formatter.

impl Clone for NulError

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NulError

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NulError

impl Into<Vec<u16>> for NulError

Performs the conversion.

impl Display for NulError

Formats the value using the given formatter. Read more

impl Error for NulError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more