pub struct List<T, B> { /* private fields */ }
Expand description
List object.
Implementations§
Source§impl<T, B> List<T, B>
impl<T, B> List<T, B>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn entry(&self) -> &[Indexed<Object<T, B>>]
pub fn entry(&self) -> &[Indexed<Object<T, B>>]
Returns a reference to the “@list” entry of the list object.
Alias for as_slice
.
pub fn entry_mut(&mut self) -> &mut Vec<Indexed<Object<T, B>>>
pub fn as_slice(&self) -> &[Indexed<Object<T, B>>]
pub fn as_mut_slice(&mut self) -> &mut [Indexed<Object<T, B>>]
pub fn into_entry(self) -> Vec<Indexed<Object<T, B>>>
pub fn push(&mut self, object: Indexed<Object<T, B>>)
pub fn pop(&mut self) -> Option<Indexed<Object<T, B>>>
pub fn iter(&self) -> Iter<'_, Indexed<Object<T, B>>>
pub fn iter_mut(&mut self) -> IterMut<'_, Indexed<Object<T, B>>>
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<'a, T, B> IntoIterator for &'a List<T, B>
impl<'a, T, B> IntoIterator for &'a List<T, B>
Source§impl<'a, T, B> IntoIterator for &'a mut List<T, B>
impl<'a, T, B> IntoIterator for &'a mut List<T, B>
Source§impl<T, B> IntoIterator for List<T, B>
impl<T, B> IntoIterator for List<T, B>
Source§impl<T, B, N> IntoJsonWithContext<N> for List<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
impl<T, B, N> IntoJsonWithContext<N> for List<T, B>where
N: Vocabulary<Iri = T, BlankId = B>,
fn into_json_with(self, vocabulary: &N) -> Value
Source§impl<T, B, V, I> LinkedData<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
impl<T, B, V, I> LinkedData<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
Source§impl<T, B, V, I> LinkedDataGraph<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
impl<T, B, V, I> LinkedDataGraph<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
fn visit_graph<S>(
&self,
visitor: S,
) -> Result<<S as GraphVisitor<I, V>>::Ok, <S as GraphVisitor<I, V>>::Error>where
S: GraphVisitor<I, V>,
Source§impl<T, B, V, I> LinkedDataPredicateObjects<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
impl<T, B, V, I> LinkedDataPredicateObjects<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
fn visit_objects<S>(
&self,
visitor: S,
) -> Result<<S as PredicateObjectsVisitor<I, V>>::Ok, <S as PredicateObjectsVisitor<I, V>>::Error>where
S: PredicateObjectsVisitor<I, V>,
Source§impl<T, B, V, I> LinkedDataResource<I, V> for List<T, B>where
V: Vocabulary,
I: Interpretation,
impl<T, B, V, I> LinkedDataResource<I, V> for List<T, B>where
V: Vocabulary,
I: Interpretation,
fn interpretation( &self, _vocabulary: &mut V, _interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
fn lexical_representation<'a>(
&'a self,
vocabulary: &'a mut V,
interpretation: &'a mut I,
) -> Option<CowRdfTerm<'a, V>>where
I: ReverseTermInterpretation<Iri = <V as IriVocabulary>::Iri, BlankId = <V as BlankIdVocabulary>::BlankId, Literal = <V as LiteralVocabulary>::Literal>,
fn reference_interpretation( &self, vocabulary: &mut V, interpretation: &mut I, ) -> ResourceInterpretation<'_, I, V>
Source§impl<T, B, V, I> LinkedDataSubject<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
impl<T, B, V, I> LinkedDataSubject<I, V> for List<T, B>where
V: Vocabulary<Iri = T> + IriVocabularyMut,
I: Interpretation,
T: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
B: LinkedDataResource<I, V> + LinkedDataSubject<I, V>,
fn visit_subject<S>(
&self,
visitor: S,
) -> Result<<S as SubjectVisitor<I, V>>::Ok, <S as SubjectVisitor<I, V>>::Error>where
S: SubjectVisitor<I, V>,
Source§impl<T, B> Relabel<T, B> for List<T, B>
impl<T, B> Relabel<T, B> for List<T, B>
impl<T, B> Eq for List<T, B>
Auto Trait Implementations§
impl<T, B> Freeze for List<T, B>
impl<T, B> RefUnwindSafe for List<T, B>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<T, B> Send for List<T, B>
impl<T, B> Sync for List<T, B>
impl<T, B> Unpin for List<T, B>where
T: Unpin,
impl<T, B> UnwindSafe for List<T, B>where
T: UnwindSafe,
B: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<I, B, T> CompactIndexedFragment<I, B> for Twhere
T: Any<I, B>,
impl<I, B, T> CompactIndexedFragment<I, B> for Twhere
T: Any<I, B>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.