[−][src]Struct unix::Environ
Process environment, conventionally an array of strings of form "key=value"
Implementations
impl<'a> Environ<'a>
[src]
pub fn get<'b>(&self, s: &'b [u8]) -> Option<Option<&'a Nul<u8>>>
[src]
Get the value of the given environment variable.
Returns None
if the variable isn't.
Returns Some(None)
if the variable is, but the entry contains no '=' character.
pub fn get_str<'b>(&self, s: &'b [u8]) -> Option<Option<&'a NulStr>>
[src]
Get the value of the given environment variable.
Returns None
if the variable isn't, or isn't valid UTF-8.
Returns Some(None)
if the variable is, but the entry contains no '=' character.
Trait Implementations
impl<'a> Clone for Environ<'a>
[src]
pub fn clone(&self) -> Environ<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Copy for Environ<'a>
[src]
impl<'a> Debug for Environ<'a>
[src]
impl<'a> Eq for Environ<'a>
[src]
impl<'a> PartialEq<Environ<'a>> for Environ<'a>
[src]
pub fn eq(&self, other: &Environ<'a>) -> bool
[src]
pub fn ne(&self, other: &Environ<'a>) -> bool
[src]
impl<'a> StructuralEq for Environ<'a>
[src]
impl<'a> StructuralPartialEq for Environ<'a>
[src]
Auto Trait Implementations
impl<'a> Send for Environ<'a>
[src]
impl<'a> Sync for Environ<'a>
[src]
impl<'a> Unpin for Environ<'a>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> TryClone for T where
T: Clone,
[src]
T: Clone,
type Error = Void
pub fn try_clone(&self) -> Result<T, Void>
[src]
pub fn try_clone_from(&mut self, other: &T) -> Result<(), Void>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,