pub enum FromSliceWithNulError {
InteriorNul(usize),
NotNulTerminated,
}
Expand description
An error indicating wrongly placed Nuls.
This error is used to indicate that a source slice had invalidly placed Nul entries, lacked a terminating Nul, etc.
Variants§
InteriorNul(usize)
Indicates that there was an interior Nul entry in the slice.
Only terminating Nul entries are allowed. This error indicates there was a Nul entry which was not the string terminator. The embedded value encodes the position in the original source array where this interior Nul entry was found.
NotNulTerminated
Indicates that the source slice was not Nul terminated.
All source slices must be Nul terminated. This error indicates that a conversion was tried on a slice that was not Nul terminated.
Trait Implementations§
Source§impl Clone for FromSliceWithNulError
impl Clone for FromSliceWithNulError
Source§fn clone(&self) -> FromSliceWithNulError
fn clone(&self) -> FromSliceWithNulError
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 FromSliceWithNulError
impl Debug for FromSliceWithNulError
Source§impl PartialEq for FromSliceWithNulError
impl PartialEq for FromSliceWithNulError
impl Eq for FromSliceWithNulError
impl StructuralPartialEq for FromSliceWithNulError
Auto Trait Implementations§
impl Freeze for FromSliceWithNulError
impl RefUnwindSafe for FromSliceWithNulError
impl Send for FromSliceWithNulError
impl Sync for FromSliceWithNulError
impl Unpin for FromSliceWithNulError
impl UnwindSafe for FromSliceWithNulError
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