pub struct ConfigKeyRef(pub &'static str);Expand description
A reference to a key in another configuration surface that this variable
bridges to (for example a .conf key the variable overrides).
Format-validated: must be namespaced (section.key). The target lives in a
different system, so only the shape can be checked here — this is the one
deliberately-weak reference in the model, and it is typed rather than a bare
string so it cannot be confused with prose.
Tuple Fields§
§0: &'static strImplementations§
Source§impl ConfigKeyRef
impl ConfigKeyRef
Sourcepub const fn new(s: &'static str) -> ConfigKeyRef
pub const fn new(s: &'static str) -> ConfigKeyRef
Validate and wrap a namespaced config key.
§Panics
At compile time if the key contains no . separator.
Trait Implementations§
Source§impl Clone for ConfigKeyRef
impl Clone for ConfigKeyRef
Source§fn clone(&self) -> ConfigKeyRef
fn clone(&self) -> ConfigKeyRef
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 moreimpl Copy for ConfigKeyRef
Source§impl Debug for ConfigKeyRef
impl Debug for ConfigKeyRef
Source§impl Display for ConfigKeyRef
impl Display for ConfigKeyRef
impl Eq for ConfigKeyRef
Source§impl PartialEq for ConfigKeyRef
impl PartialEq for ConfigKeyRef
impl StructuralPartialEq for ConfigKeyRef
Auto Trait Implementations§
impl Freeze for ConfigKeyRef
impl RefUnwindSafe for ConfigKeyRef
impl Send for ConfigKeyRef
impl Sync for ConfigKeyRef
impl Unpin for ConfigKeyRef
impl UnsafeUnpin for ConfigKeyRef
impl UnwindSafe for ConfigKeyRef
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