pub struct Config(/* private fields */);Expand description
Facts a gate can read at open, as k=v;k=v (a locale, a collation, schema=none).
Keys are kept sorted, so the string form is canonical and files diff stably. Values may not
contain ; or a tab.
Implementations§
Source§impl Config
impl Config
Sourcepub fn parse(s: &str) -> Result<Self, ConfigError>
pub fn parse(s: &str) -> Result<Self, ConfigError>
Parse k=v;k=v. The empty string is the empty configuration.
Sourcepub fn with(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn with(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add or replace one fact.
Trait Implementations§
impl Eq for Config
Source§impl Ord for Config
impl Ord for Config
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Config
impl PartialOrd for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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