pub struct GStrInteriorNulError(/* private fields */);
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)>
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(err: GStrInteriorNulError) -> Self
fn from(err: 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
)