Trait clojurust::clojure::rust::objects::Unique::Unique[][src]

pub trait Unique: IObject {
    fn len(&self) -> ObjResult<usize>;
fn get_name<'a>(&self, index: usize) -> ObjResult<String>;
fn get_or_make_index(&mut self, index: &str) -> ObjResult<usize>;
fn get_index(&mut self, name: &str) -> ObjResult<usize>;
fn test(&self, key: &str) -> ObjResult<bool>; }

Protocole Unique

Required methods

fn len(&self) -> ObjResult<usize>[src]

Size of SStrVector

fn get_name<'a>(&self, index: usize) -> ObjResult<String>[src]

Gives name of index

return None if doesn’t exist

fn get_or_make_index(&mut self, index: &str) -> ObjResult<usize>[src]

Gives index of name

Create name and index is they doesn’t exist

fn get_index(&mut self, name: &str) -> ObjResult<usize>[src]

Gives index of name

return None if doesn’t exist

fn test(&self, key: &str) -> ObjResult<bool>[src]

Tests if name exists

Loading content...

Implementors

impl Unique for SUnique[src]

fn len(&self) -> ObjResult<usize>[src]

Size of SStrVector

fn get_name(&self, key: usize) -> ObjResult<String>[src]

Gives name of index

return None if doesn’t exist

fn get_or_make_index(&mut self, name: &str) -> ObjResult<usize>[src]

Gives index of name

Create name and index is they doesn’t exist

fn get_index(&mut self, name: &str) -> ObjResult<usize>[src]

Gives index of name

return Error if doesn’t exist

fn test(&self, name: &str) -> ObjResult<bool>[src]

Tests if name exists

Loading content...