[][src]Struct manaconf::Key

pub struct Key { /* fields omitted */ }

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

pub fn to_string_with_seperator(&self, seperator: &str) -> String[src]

Trait Implementations

impl AsRef<Key> for Key[src]

impl AsRef<Key> for str[src]

impl AsRef<Key> for KeyBuf[src]

impl Borrow<Key> for KeyBuf[src]

impl Debug for Key[src]

impl Deref for Key[src]

type Target = str

The resulting type after dereferencing.

impl ToOwned for Key[src]

type Owned = KeyBuf

The resulting type after obtaining ownership.

Auto Trait Implementations

impl RefUnwindSafe for Key

impl Send for Key

impl Sync for Key

impl Unpin for Key

impl UnwindSafe for Key

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.