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
impl Eq for List
impl StructuralPartialEq for List
Auto Trait Implementations§
impl Freeze for List
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<V> IntoAnnotatedElement for V
impl<V> IntoAnnotatedElement for V
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.