pub struct GeneratedEnvironment { /* private fields */ }Expand description
One ordered Compose environment entry.
Implementations§
Source§impl GeneratedEnvironment
impl GeneratedEnvironment
Sourcepub fn literal(
name: impl Into<String>,
value: GeneratedString,
) -> Result<Self, GenerationError>
pub fn literal( name: impl Into<String>, value: GeneratedString, ) -> Result<Self, GenerationError>
Creates a literal NAME=value entry.
§Errors
Rejects an empty/NUL-bearing name or a name containing =.
Sourcepub fn host(name: impl Into<String>) -> Result<Self, GenerationError>
pub fn host(name: impl Into<String>) -> Result<Self, GenerationError>
Creates a host-resolved key-only environment entry.
§Errors
Rejects an empty/NUL-bearing name or a name containing =.
Sourcepub const fn value(&self) -> Option<&GeneratedString>
pub const fn value(&self) -> Option<&GeneratedString>
Returns the optional literal value.
Trait Implementations§
Source§impl Clone for GeneratedEnvironment
impl Clone for GeneratedEnvironment
Source§fn clone(&self) -> GeneratedEnvironment
fn clone(&self) -> GeneratedEnvironment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeneratedEnvironment
impl Debug for GeneratedEnvironment
impl Eq for GeneratedEnvironment
Source§impl PartialEq for GeneratedEnvironment
impl PartialEq for GeneratedEnvironment
impl StructuralPartialEq for GeneratedEnvironment
Auto Trait Implementations§
impl Freeze for GeneratedEnvironment
impl RefUnwindSafe for GeneratedEnvironment
impl Send for GeneratedEnvironment
impl Sync for GeneratedEnvironment
impl Unpin for GeneratedEnvironment
impl UnsafeUnpin for GeneratedEnvironment
impl UnwindSafe for GeneratedEnvironment
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