pub enum Value<'c> {
}Variants§
Nil
T
String(&'c str)
Symbol(Symbol<'c>)
QuotedSymbol(Symbol<'c>)
Byte(u8)
UnsignedInteger(UnsignedInteger)
Integer(Integer)
Float(Float)
List(Cell<'c>)
QuotedList(Cell<'c>)
EmptyList
EmptyQuotedList
Implementations§
Source§impl<'c> Value<'c>
impl<'c> Value<'c>
pub fn nil() -> Value<'c>
pub fn t() -> Value<'c>
pub fn symbol<T: AsSymbol<'c>>(sym: T) -> Value<'c>
pub fn quoted_symbol<T: AsSymbol<'c>>(sym: T) -> Value<'c>
pub fn string<T: ToString>(value: T) -> Value<'c>
pub fn byte<T: AsNumber<u8>>(byte: T) -> Value<'c>
pub fn unsigned_integer<T: AsUnsignedInteger>(value: T) -> Value<'c>
pub fn integer<T: AsInteger>(value: T) -> Value<'c>
pub fn float<T: AsFloat>(value: T) -> Value<'c>
pub fn list<T: AsCell<'c>>(item: T) -> Value<'c>
pub fn quoted_list<T: AsCell<'c>>(item: T) -> Value<'c>
pub fn is_nil(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn empty_list() -> Value<'c>
pub fn empty_quoted_list() -> Value<'c>
pub fn quote(&self) -> Value<'c>
pub fn values(&self) -> Vec<Value<'c>>
pub fn head(&self) -> Value<'c>
pub fn tail(&self) -> Cell<'c>
pub fn wrap_in_list(&self) -> Value<'c>
pub fn unwrap_list(&self) -> Value<'c>
pub fn is_integer(&self) -> bool
pub fn is_unsigned_integer(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_symbol(&self) -> bool
pub fn is_list(&self) -> bool
Trait Implementations§
Source§impl<'c> AsUnsignedInteger for Value<'c>
impl<'c> AsUnsignedInteger for Value<'c>
fn as_unsigned_integer(&self) -> UnsignedInteger
fn inner(&self) -> u32
Source§impl<'c> Extend<Value<'c>> for Value<'c>
impl<'c> Extend<Value<'c>> for Value<'c>
Source§fn extend<T: IntoIterator<Item = Value<'c>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Value<'c>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<'c> FromIterator<Value<'c>> for Cell<'c>
impl<'c> FromIterator<Value<'c>> for Cell<'c>
Source§impl<'c> FromIterator<Value<'c>> for Value<'c>
impl<'c> FromIterator<Value<'c>> for Value<'c>
Source§impl<'c> IntoIterator for &Value<'c>
impl<'c> IntoIterator for &Value<'c>
Source§impl<'c> IntoIterator for Value<'c>
impl<'c> IntoIterator for Value<'c>
Source§impl<'c> ListIterator<'c, Value<'c>> for &Value<'c>
impl<'c> ListIterator<'c, Value<'c>> for &Value<'c>
fn iter_cells(&self) -> 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> ListIterator<'c, Value<'c>> for Value<'c>
impl<'c> ListIterator<'c, Value<'c>> for Value<'c>
fn iter_cells(&self) -> Cell<'c>
Source§impl<'c> Ord for Value<'c>
impl<'c> Ord for Value<'c>
Source§impl<'c> PartialOrd for Value<'c>
impl<'c> PartialOrd for Value<'c>
impl<'c> Eq for Value<'c>
impl<'c> StructuralPartialEq for Value<'c>
Auto Trait Implementations§
impl<'c> Freeze for Value<'c>
impl<'c> RefUnwindSafe for Value<'c>
impl<'c> !Send for Value<'c>
impl<'c> !Sync for Value<'c>
impl<'c> Unpin for Value<'c>
impl<'c> UnwindSafe for Value<'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