pub trait StringInterner {
    type String: AsRef<[u8]> + Clone;

    // Required method
    fn intern(&mut self, s: &[u8]) -> Self::String;
}

Required Associated Types§

type String: AsRef<[u8]> + Clone

Required Methods§

fn intern(&mut self, s: &[u8]) -> Self::String

Implementations on Foreign Types§

§

impl<'a, S> StringInterner for &'a mut S
where S: StringInterner,

§

type String = <S as StringInterner>::String

§

fn intern(&mut self, s: &[u8]) -> <&'a mut S as StringInterner>::String

Implementors§