Struct glib::GStrInteriorNulError
source · pub struct GStrInteriorNulError(usize);
Expand description
Error type indicating that a buffer had unexpected nul-bytes.
Tuple Fields§
§0: usize
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)>
Returns 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 for GStrInteriorNulError
impl PartialEq for GStrInteriorNulError
impl Copy for GStrInteriorNulError
impl Eq for GStrInteriorNulError
impl StructuralPartialEq for GStrInteriorNulError
Auto Trait Implementations§
impl Freeze for GStrInteriorNulError
impl RefUnwindSafe for GStrInteriorNulError
impl Send for GStrInteriorNulError
impl Sync for GStrInteriorNulError
impl Unpin for GStrInteriorNulError
impl UnwindSafe for GStrInteriorNulError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)