pub struct WindowsEnvVars {
map: FxHashMap<OsString, OsString>,
}
Fields§
§map: FxHashMap<OsString, OsString>
Stores the environment variables.
Implementations§
Source§impl WindowsEnvVars
impl WindowsEnvVars
pub(crate) fn new<'tcx>( _ecx: &mut InterpCx<'tcx, MiriMachine<'tcx>>, env_vars: FxHashMap<OsString, OsString>, ) -> InterpResult<'tcx, Self>
Sourcepub(crate) fn get<'tcx>(
&self,
name: &OsStr,
) -> InterpResult<'tcx, Option<OsString>>
pub(crate) fn get<'tcx>( &self, name: &OsStr, ) -> InterpResult<'tcx, Option<OsString>>
Implementation detail for InterpCx::get_env_var
.
Trait Implementations§
Source§impl Default for WindowsEnvVars
impl Default for WindowsEnvVars
Source§fn default() -> WindowsEnvVars
fn default() -> WindowsEnvVars
Returns the “default value” for a type. Read more
Source§impl VisitProvenance for WindowsEnvVars
impl VisitProvenance for WindowsEnvVars
fn visit_provenance(&self, _visit: &mut VisitWith<'_>)
Auto Trait Implementations§
impl Freeze for WindowsEnvVars
impl RefUnwindSafe for WindowsEnvVars
impl Send for WindowsEnvVars
impl Sync for WindowsEnvVars
impl Unpin for WindowsEnvVars
impl UnwindSafe for WindowsEnvVars
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes