[−][src]Struct manaconf::Key
Implementations
impl Key
[src]
pub fn new(key: &str) -> &Key
[src]
Create a new key from a &str
pub fn components<'a>(&'a self) -> Components<'a>
[src]
Gets an iterator over the key's components
pub fn to_key_buf(&self) -> KeyBuf
[src]
Creates a KeyBuf
from the current Key
pub fn start_with<K: AsRef<Key>>(&self, prefix: K) -> bool
[src]
Determines if the current key starts with a given prefix
pub fn strip_prefix<K: AsRef<Key>>(&self, prefix: K) -> KeyBuf
[src]
Strips the given prefix
from the key and returns the modfied key as a
KeyBuf
pub fn _strip_prefix(&self, prefix: &Key) -> KeyBuf
[src]
pub fn extend_with_suffix<K: AsRef<Key>>(&self, suffix: K) -> KeyBuf
[src]
pub fn as_str(&self) -> &str
[src]
Gets a representation of the key as as a &str