EnvironmentEntry
Owns an exact native environment name and value without changing host state. Validation belongs to Environment.TrySet so rejected entries retain both owners. Names and values are immutable through this API; movement invalidates views. Concurrent reads require stable ownership; synchronize replacement/movement.
Module std.process
import std.process;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
EnvironmentEntry
pub final class EnvironmentEntryOwns an exact native environment name and value without changing host state. Validation belongs to Environment.TrySet so rejected entries retain both owners. Names and values are immutable through this API; movement invalidates views. Concurrent reads require stable ownership; synchronize replacement/movement.
pub init(mut Name: NativeString, mut Value: NativeString)
pub init(mut Name: NativeString, mut Value: NativeString)Adopts native name/value ownership without allocation or validation. Name: Owned exact name, transferred even when invalid for insertion. Value: Owned exact value, including empty values.
pub init(Source: readonly Self&) = delete;
pub init(Source: readonly Self&) = delete;Rejects implicit allocating copies. Source: Existing owner.
pub init(Source: mut Self&&)
pub init(Source: mut Self&&)Transfers both owners without allocation. Source: Entry left with empty name/value.
operator
pub fn operator =(Source: readonly Self&) -> void = delete;Rejects implicit allocating assignment. Source: Existing owner. Return: No runtime result; this assignment is deleted and cannot be invoked.
operator
pub fn operator =(Source: mut Self&&) -> voidReplaces both owners by explicit transfer. Source: Entry left empty except unchanged self-move. Return: No value after transferring both encoded owners; nested self-move is unchanged.
pub Name: NativeStringView
pub Name: NativeStringViewBorrows exact name units without allocation. Return: View expiring on entry replacement/movement/destruction.
pub Value: NativeStringView
pub Value: NativeStringViewBorrows exact value units, including a present empty value. Return: View expiring on entry replacement/movement/destruction.
TryClone
pub readonly fn TryClone() -> Result<Self, NativeStringError>Creates an independent name/value copy with explicit allocation failure. Return: Owned clone or exact native text/storage error; source unchanged. Warning: May allocate and copy all native units.