Struct rclist::RcList
[−]
[src]
pub struct RcList<T> { /* fields omitted */ }
RcList Head
Methods
impl<T> RcList<T>
[src]
impl<T: Clone> RcList<T>
[src]
pub fn new_append(value: T, rest: &RcList<T>) -> RcList<T>
[src]
Create new RcList
from value and existing RcList
pub fn new_append_weak(value: T, rest: &RcList<T>) -> RcList<T>
[src]
Create new RcList
from value and weakly referenced existing RcList
Weak-reference is useful for limiting memory consumption. After no other RcList
is
holding a part of the RcList
with non-weak reference, it will be freed.
ⓘImportant traits for RcListIter<T>pub fn iter(&self) -> RcListIter<T>
[src]
ⓘImportant traits for RcListIter<T>
Get iterator over RcList
Trait Implementations
impl<T: Clone> Clone for RcList<T>
[src]
fn clone(&self) -> RcList<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more