Struct openssh_mux_client::NonZeroByteVec
source · pub struct NonZeroByteVec(/* private fields */);
Implementations§
source§impl NonZeroByteVec
impl NonZeroByteVec
pub fn new(bytes: Vec<u8>) -> Option<NonZeroByteVec>
pub fn from_bytes_remove_nul(bytes: Vec<u8>) -> NonZeroByteVec
sourcepub const unsafe fn new_unchecked(bytes: Vec<u8>) -> NonZeroByteVec
pub const unsafe fn new_unchecked(bytes: Vec<u8>) -> NonZeroByteVec
§Safety
bytes
- Must not contain0
.
pub fn from_slice(slice: &NonZeroByteSlice) -> NonZeroByteVec
pub fn push(&mut self, byte: NonZero<u8>)
pub fn from_bytes_slice_lossy(slice: &[u8]) -> Cow<'_, NonZeroByteSlice>
Methods from Deref<Target = NonZeroByteSlice>§
pub fn into_inner(&self) -> &[u8] ⓘ
Trait Implementations§
source§impl Borrow<NonZeroByteSlice> for NonZeroByteVec
impl Borrow<NonZeroByteSlice> for NonZeroByteVec
source§fn borrow(&self) -> &NonZeroByteSlice
fn borrow(&self) -> &NonZeroByteSlice
Immutably borrows from an owned value. Read more
source§impl Clone for NonZeroByteVec
impl Clone for NonZeroByteVec
source§fn clone(&self) -> NonZeroByteVec
fn clone(&self) -> NonZeroByteVec
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 NonZeroByteVec
impl Debug for NonZeroByteVec
source§impl Deref for NonZeroByteVec
impl Deref for NonZeroByteVec
source§type Target = NonZeroByteSlice
type Target = NonZeroByteSlice
The resulting type after dereferencing.
source§impl From<&NonZeroByteSlice> for NonZeroByteVec
impl From<&NonZeroByteSlice> for NonZeroByteVec
source§fn from(slice: &NonZeroByteSlice) -> NonZeroByteVec
fn from(slice: &NonZeroByteSlice) -> NonZeroByteVec
Converts to this type from the input type.
source§impl From<CString> for NonZeroByteVec
impl From<CString> for NonZeroByteVec
source§fn from(s: CString) -> NonZeroByteVec
fn from(s: CString) -> NonZeroByteVec
Converts to this type from the input type.
source§impl Hash for NonZeroByteVec
impl Hash for NonZeroByteVec
source§impl PartialEq for NonZeroByteVec
impl PartialEq for NonZeroByteVec
source§impl Serialize for NonZeroByteVec
impl Serialize for NonZeroByteVec
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl TryFrom<String> for NonZeroByteVec
impl TryFrom<String> for NonZeroByteVec
source§type Error = NullByteError
type Error = NullByteError
The type returned in the event of a conversion error.
source§fn try_from(
s: String,
) -> Result<NonZeroByteVec, <NonZeroByteVec as TryFrom<String>>::Error>
fn try_from( s: String, ) -> Result<NonZeroByteVec, <NonZeroByteVec as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for NonZeroByteVec
impl StructuralPartialEq for NonZeroByteVec
Auto Trait Implementations§
impl Freeze for NonZeroByteVec
impl RefUnwindSafe for NonZeroByteVec
impl Send for NonZeroByteVec
impl Sync for NonZeroByteVec
impl Unpin for NonZeroByteVec
impl UnwindSafe for NonZeroByteVec
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
)