pub enum NameCase {
Insensitive,
Sensitive,
}Expand description
How names are compared, variables’ and files’ alike, which depends on the operating system they came from.
Variants§
Insensitive
Path and PATH are one name (Windows).
Sensitive
Path and PATH are two names (other systems).
Implementations§
Source§impl NameCase
impl NameCase
Sourcepub fn host() -> NameCase
pub fn host() -> NameCase
How the operating system cuno is running on compares names. Used only
for the process’s own environment (Env::from_process): the host is
otherwise received as a value (docs/en/specs/architecture.md), and
every other Env is built with an explicit NameCase, so both
behaviours are tested on any system.
Trait Implementations§
impl Copy for NameCase
impl Eq for NameCase
impl StructuralPartialEq for NameCase
Auto Trait Implementations§
impl Forget for NameCase
impl Freeze for NameCase
impl Move for NameCase
impl RefUnwindSafe for NameCase
impl Send for NameCase
impl Sync for NameCase
impl Unpin for NameCase
impl UnsafeUnpin for NameCase
impl UnwindSafe for NameCase
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