pub struct SExp(pub Sequence);
Expand description
An in-memory representation of an Ion s-expression
use ion_rs::element::{Element, List};
use ion_rs::ion_sexp;
let sexp = ion_sexp!(1 2 3);
assert_eq!(sexp.len(), 3);
assert_eq!(sexp.get(1), Some(&Element::integer(2)));
To build a SExp
incrementally, see SequenceBuilder.
Tuple Fields§
§0: Sequence
Implementations§
Trait Implementations§
source§impl<'a> IntoIterator for &'a SExp
impl<'a> IntoIterator for &'a SExp
source§impl PartialEq<SExp> for SExp
impl PartialEq<SExp> for SExp
impl Eq for SExp
impl StructuralEq for SExp
impl StructuralPartialEq for SExp
Auto Trait Implementations§
impl RefUnwindSafe for SExp
impl Send for SExp
impl Sync for SExp
impl Unpin for SExp
impl UnwindSafe for SExp
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
source§impl<V> IntoAnnotatedElement for Vwhere
V: Into<Value>,
impl<V> IntoAnnotatedElement for Vwhere V: Into<Value>,
source§fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
fn with_annotations<I: IntoAnnotations>(self, annotations: I) -> Element
Converts the value into an Element with the specified annotations.