pub struct SExpressionRef(pub Rc<SExpression>);Tuple Fields§
§0: Rc<SExpression>Implementations§
Source§impl SExpressionRef
impl SExpressionRef
pub fn new(sx: SExpression) -> Self
pub fn clone(sx: &Self) -> Self
pub fn cons_cell(c: ConsCell) -> Self
pub fn function(function: Function) -> Self
pub fn iter(&self) -> ListIter ⓘ
pub fn len(&self) -> usize
pub fn macro(m: Macro) -> Self
pub fn number(n: isize) -> Self
pub fn nil() -> Self
pub fn quote(v: Self) -> Self
pub fn string(s: String) -> Self
pub fn symbol(s: String) -> Self
Methods from Deref<Target = SExpression>§
Trait Implementations§
Source§impl Clone for SExpressionRef
impl Clone for SExpressionRef
Source§fn clone(&self) -> SExpressionRef
fn clone(&self) -> SExpressionRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SExpressionRef
impl Debug for SExpressionRef
Source§impl Deref for SExpressionRef
impl Deref for SExpressionRef
Source§impl Display for SExpressionRef
impl Display for SExpressionRef
Source§impl From<ConsCell> for SExpressionRef
impl From<ConsCell> for SExpressionRef
Source§impl From<Function> for SExpressionRef
impl From<Function> for SExpressionRef
Source§impl From<LispFunction> for SExpressionRef
impl From<LispFunction> for SExpressionRef
Source§fn from(l: LispFunction) -> Self
fn from(l: LispFunction) -> Self
Converts to this type from the input type.
Source§impl From<LispMacro> for SExpressionRef
impl From<LispMacro> for SExpressionRef
Source§impl From<ListIter> for SExpressionRef
impl From<ListIter> for SExpressionRef
Source§impl From<Macro> for SExpressionRef
impl From<Macro> for SExpressionRef
Source§impl From<RustFunction> for SExpressionRef
impl From<RustFunction> for SExpressionRef
Source§fn from(f: RustFunction) -> Self
fn from(f: RustFunction) -> Self
Converts to this type from the input type.
Source§impl From<RustMacro> for SExpressionRef
impl From<RustMacro> for SExpressionRef
Source§impl From<SExpressionRef> for Function
impl From<SExpressionRef> for Function
Source§impl From<SExpressionRef> for LispFunction
impl From<SExpressionRef> for LispFunction
Source§impl From<SExpressionRef> for LispMacro
impl From<SExpressionRef> for LispMacro
Source§impl From<SExpressionRef> for Macro
impl From<SExpressionRef> for Macro
Source§impl From<Vec<SExpressionRef>> for SExpressionRef
impl From<Vec<SExpressionRef>> for SExpressionRef
Source§impl FromIterator<SExpressionRef> for SExpressionRef
impl FromIterator<SExpressionRef> for SExpressionRef
Source§fn from_iter<I: IntoIterator<Item = SExpressionRef>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = SExpressionRef>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for SExpressionRef
impl PartialEq for SExpressionRef
impl StructuralPartialEq for SExpressionRef
Auto Trait Implementations§
impl Freeze for SExpressionRef
impl RefUnwindSafe for SExpressionRef
impl !Send for SExpressionRef
impl !Sync for SExpressionRef
impl Unpin for SExpressionRef
impl UnwindSafe for SExpressionRef
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