Struct clojurust::clojure::rust::objects::Unique::SUnique     [−][src]
A keyword storage structure
We will store all Strings used as reference to objects as usize.
usizevalues are unique and immutable for everyString.Stringsare added incrementally to thevectObjVectorand cannot be destroyed.
As a String is added, it’s index is added in the map ObjHashMap.
Examples
Fields
map: ObjectSPersistentMap of name: String -> id: usize
vect: ObjectSPersistentVector index: usize -> value: String
Implementations
impl SUnique[src]
Trait Implementations
impl Default for SUnique[src]
impl Drop for SUnique[src]
impl IObject for SUnique[src]
fn getClass<'a>(&self) -> &'a SClass[src]
fn hashCode(&self) -> usize[src]
fn equals(&self, other: &Object) -> bool[src]
fn toString(&self) -> String[src]
impl Send for SUnique[src]
impl Sync for SUnique[src]
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
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<S> CastArc for S where
    S: CastFromSync + ?Sized, [src]
S: CastFromSync + ?Sized,
impl<S> CastBox for S where
    S: CastFrom + ?Sized, [src]
S: CastFrom + ?Sized,
pub fn cast<T>(self: Box<S, Global>) -> Result<Box<T, Global>, Box<S, Global>> where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> CastFrom for T where
    T: 'static + Any, [src]
T: 'static + Any,
pub fn ref_any(&self) -> &(dyn Any + 'static)[src]
pub fn mut_any(&mut self) -> &mut (dyn Any + 'static)[src]
pub fn box_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>[src]
pub fn rc_any(self: Rc<T>) -> Rc<dyn Any + 'static>[src]
impl<T> CastFromSync for T where
    T: 'static + Sync + Send, [src]
T: 'static + Sync + Send,
impl<S> CastMut for S where
    S: CastFrom + ?Sized, [src]
S: CastFrom + ?Sized,
impl<S> CastRc for S where
    S: CastFrom + ?Sized, [src]
S: CastFrom + ?Sized,
impl<S> CastRef for S where
    S: CastFrom + ?Sized, [src]
S: CastFrom + ?Sized,
pub fn cast<T>(&self) -> Option<&T> where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
pub fn impls<T>(&self) -> bool where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,