pub struct Cell<'c> { /* private fields */ }Implementations§
Source§impl<'c> Cell<'c>
impl<'c> Cell<'c>
pub fn nil() -> Cell<'c>
pub fn quoted<T: AsValue<'c>>(item: Option<T>, quoted: bool) -> Cell<'c>
pub fn is_nil(&self) -> bool
pub fn unwrap_value(&self) -> Value<'c>
pub fn new<T: AsValue<'c>>(item: T) -> Cell<'c>
pub fn head(&self) -> Option<Value<'c>>
pub fn push_value(&mut self, value: Value<'c>)
pub fn add(&mut self, new: &Cell<'c>)
pub fn pop(&mut self) -> bool
pub fn is_empty(&self) -> bool
pub fn tail(&self) -> Option<&'c Cell<'c>>
pub fn values(&self) -> Vec<Value<'c>>
pub fn to_vec(&self) -> Vec<Value<'c>>
Trait Implementations§
Source§impl<'c> FromIterator<Value<'c>> for Cell<'c>
impl<'c> FromIterator<Value<'c>> for Cell<'c>
Source§impl<'c> IntoIterator for Cell<'c>
impl<'c> IntoIterator for Cell<'c>
Source§impl<'c> ListIterator<'c, Value<'c>> for Cell<'c>
impl<'c> ListIterator<'c, Value<'c>> for Cell<'c>
fn iter_cells(&self) -> Cell<'c>
Source§impl<'c> Ord for Cell<'c>
impl<'c> Ord for Cell<'c>
Source§impl<'c> PartialOrd for Cell<'c>
impl<'c> PartialOrd for Cell<'c>
impl<'c> Eq for Cell<'c>
Auto Trait Implementations§
impl<'c> Freeze for Cell<'c>
impl<'c> RefUnwindSafe for Cell<'c>
impl<'c> !Send for Cell<'c>
impl<'c> !Sync for Cell<'c>
impl<'c> Unpin for Cell<'c>
impl<'c> UnwindSafe for Cell<'c>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more