Struct json_ld_core::object::list::List
source · pub struct List<T, B, M> { /* private fields */ }
Expand description
List object.
Implementations§
source§impl<T, B, M> List<T, B, M>
impl<T, B, M> List<T, B, M>
pub fn new(key_metadata: M, value: Meta<Vec<IndexedObject<T, B, M>>, M>) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
sourcepub fn entry(&self) -> &Entry<Vec<IndexedObject<T, B, M>>, M>
pub fn entry(&self) -> &Entry<Vec<IndexedObject<T, B, M>>, M>
Returns a reference to the “@list” entry of the list object.
pub fn entry_mut(&mut self) -> &mut Entry<Vec<IndexedObject<T, B, M>>, M>
pub fn into_entry(self) -> Entry<Vec<IndexedObject<T, B, M>>, M>
pub fn push(&mut self, object: IndexedObject<T, B, M>)
pub fn pop(&mut self) -> Option<IndexedObject<T, B, M>>
pub fn iter(&self) -> Iter<'_, IndexedObject<T, B, M>>
pub fn iter_mut(&mut self) -> IterMut<'_, IndexedObject<T, B, M>>
pub fn as_slice(&self) -> &[IndexedObject<T, B, M>]
pub fn as_mut_slice(&mut self) -> &mut [IndexedObject<T, B, M>]
sourcepub fn canonicalize_with(&mut self, buffer: &mut Buffer)
pub fn canonicalize_with(&mut self, buffer: &mut Buffer)
Puts this list object literals into canonical form using the given
buffer
.
The buffer is used to compute the canonical form of numbers.
sourcepub fn canonicalize(&mut self)
pub fn canonicalize(&mut self)
Puts this list object literals into canonical form.
Trait Implementations§
source§impl<T, B, M> Any<T, B, M> for List<T, B, M>
impl<T, B, M> Any<T, B, M> for List<T, B, M>
fn as_ref(&self) -> Ref<'_, T, B, M>
fn id_entry<'a>(&'a self) -> Option<&'a Entry<Id<T, B>, M>>where
M: 'a,
fn id<'a>(&'a self) -> Option<&'a Meta<Id<T, B>, M>>where
M: 'a,
fn language<'a>(&'a self) -> Option<LenientLanguageTag<'_>>where
T: 'a,
B: 'a,
M: 'a,
fn is_value(&self) -> bool
fn is_node(&self) -> bool
fn is_graph(&self) -> bool
fn is_list(&self) -> bool
source§impl<'a, T, B, M> IntoIterator for &'a List<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a List<T, B, M>
source§impl<'a, T, B, M> IntoIterator for &'a mut List<T, B, M>
impl<'a, T, B, M> IntoIterator for &'a mut List<T, B, M>
source§impl<T, B, M> IntoIterator for List<T, B, M>
impl<T, B, M> IntoIterator for List<T, B, M>
source§impl<T, B, M: Clone, N: Vocabulary<Iri = T, BlankId = B>> IntoJsonWithContextMeta<M, N> for List<T, B, M>
impl<T, B, M: Clone, N: Vocabulary<Iri = T, BlankId = B>> IntoJsonWithContextMeta<M, N> for List<T, B, M>
source§impl<T, B, M> PartialEq<List<T, B, M>> for List<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: PartialEq,
impl<T, B, M> PartialEq<List<T, B, M>> for List<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: PartialEq,
source§impl<T: Hash, B: Hash, M> StrippedHash for List<T, B, M>
impl<T: Hash, B: Hash, M> StrippedHash for List<T, B, M>
fn stripped_hash<H: Hasher>(&self, state: &mut H)
source§impl<T: Eq + Hash, B: Eq + Hash, M> StrippedPartialEq<List<T, B, M>> for List<T, B, M>
impl<T: Eq + Hash, B: Eq + Hash, M> StrippedPartialEq<List<T, B, M>> for List<T, B, M>
fn stripped_eq(&self, other: &Self) -> bool
impl<T, B, M> Eq for List<T, B, M>where
T: Eq + Hash,
B: Eq + Hash,
M: Eq,
impl<T: Eq + Hash, B: Eq + Hash, M> StrippedEq for List<T, B, M>
Auto Trait Implementations§
impl<T, B, M> RefUnwindSafe for List<T, B, M>where
B: RefUnwindSafe,
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, B, M> Send for List<T, B, M>where
B: Send,
M: Send,
T: Send,
impl<T, B, M> Sync for List<T, B, M>where
B: Sync,
M: Sync,
T: Sync,
impl<T, B, M> Unpin for List<T, B, M>where
M: Unpin,
T: Unpin,
impl<T, B, M> UnwindSafe for List<T, B, M>where
B: UnwindSafe,
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.