pub enum TryNewError {
NulError(usize, Vec<u8>),
AllocError,
}Expand description
Error returned when creating a CString fails.
Variants§
NulError(usize, Vec<u8>)
An interior nul byte was found at the given position.
AllocError
Memory allocation failed.
Trait Implementations§
Source§impl Clone for TryNewError
impl Clone for TryNewError
Source§fn clone(&self) -> TryNewError
fn clone(&self) -> TryNewError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TryNewError
impl Debug for TryNewError
impl Eq for TryNewError
Source§impl From<AllocError> for TryNewError
impl From<AllocError> for TryNewError
Source§fn from(_err: AllocError) -> Self
fn from(_err: AllocError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TryNewError
impl PartialEq for TryNewError
impl StructuralPartialEq for TryNewError
Auto Trait Implementations§
impl Freeze for TryNewError
impl RefUnwindSafe for TryNewError
impl Send for TryNewError
impl Sync for TryNewError
impl Unpin for TryNewError
impl UnsafeUnpin for TryNewError
impl UnwindSafe for TryNewError
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