Struct glib::GStrInteriorNulError
source · pub struct GStrInteriorNulError(_);
Expand description
Error type indicating that a buffer had unexpected nul-bytes.
Implementations§
source§impl GStrInteriorNulError
impl GStrInteriorNulError
sourcepub fn nul_position(&self) -> usize
pub fn nul_position(&self) -> usize
Returns the position of the nul-byte in the slice that caused the conversion to fail.
Trait Implementations§
source§impl Clone for GStrInteriorNulError
impl Clone for GStrInteriorNulError
source§fn clone(&self) -> GStrInteriorNulError
fn clone(&self) -> GStrInteriorNulError
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 GStrInteriorNulError
impl Debug for GStrInteriorNulError
source§impl Display for GStrInteriorNulError
impl Display for GStrInteriorNulError
source§impl Error for GStrInteriorNulError
impl Error for GStrInteriorNulError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<GStrInteriorNulError> for GStrError
impl From<GStrInteriorNulError> for GStrError
source§fn from(source: GStrInteriorNulError) -> Self
fn from(source: GStrInteriorNulError) -> Self
Converts to this type from the input type.
source§impl PartialEq<GStrInteriorNulError> for GStrInteriorNulError
impl PartialEq<GStrInteriorNulError> for GStrInteriorNulError
source§fn eq(&self, other: &GStrInteriorNulError) -> bool
fn eq(&self, other: &GStrInteriorNulError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.