[−][src]Struct artsy::Trie
Methods
impl<'a, T> Trie<'a, T>
[src]
pub fn with_terminator(term: u8) -> Trie<'a, T>
[src]
pub fn for_ascii() -> Trie<'a, T>
[src]
pub fn for_utf8() -> Trie<'a, T>
[src]
pub fn insert(
&mut self,
key: &[u8],
value: T
) -> Result<Option<T>, KeyContainsTerminator>
[src]
&mut self,
key: &[u8],
value: T
) -> Result<Option<T>, KeyContainsTerminator>
pub unsafe fn insert_unchecked(&mut self, key: &[u8], value: T) -> Option<T>
[src]
pub fn contains(&self, key: &[u8]) -> Result<bool, KeyContainsTerminator>
[src]
pub unsafe fn contains_unchecked(&self, key: &[u8]) -> bool
[src]
pub fn get(&self, key: &[u8]) -> Result<Option<&T>, KeyContainsTerminator>
[src]
pub unsafe fn get_unchecked(&self, key: &[u8]) -> Option<&T>
[src]
pub fn is_empty(&self) -> bool
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,