pub struct List(pub Sequence);
Expand description
An in-memory representation of an Ion list.
use ion_rs::element::{Element, List};
use ion_rs::ion_list;
let list = ion_list![1, 2, 3];
assert_eq!(list.len(), 3);
assert_eq!(list.get(1), Some(&Element::integer(2)));
To build a List
incrementally, see SequenceBuilder.
Tuple Fields§
§0: Sequence
Implementations§
Trait Implementations§
source§impl<'a> IntoIterator for &'a List
impl<'a> IntoIterator for &'a List
source§impl PartialEq<List> for List
impl PartialEq<List> for List
impl Eq for List
impl StructuralEq for List
impl StructuralPartialEq for List
Auto Trait Implementations§
impl RefUnwindSafe for List
impl Send for List
impl Sync for List
impl Unpin for List
impl UnwindSafe for List
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.