pub struct CollectionResult<T, E> { /* private fields */ }Expand description
Recovered semantic values merged from duplicate declarations.
Implementations§
Source§impl<T, E> CollectionResult<T, E>
impl<T, E> CollectionResult<T, E>
Sourcepub fn entries(&self) -> &[CollectionEntry<T>]
pub fn entries(&self) -> &[CollectionEntry<T>]
Returns valid entries in declaration and entry source order.
Sourcepub fn values(&self) -> impl ExactSizeIterator<Item = &T> + DoubleEndedIterator
pub fn values(&self) -> impl ExactSizeIterator<Item = &T> + DoubleEndedIterator
Iterates over parsed values without hiding the separately retained issues.
Sourcepub fn issues(&self) -> &[CollectionIssue<E>]
pub fn issues(&self) -> &[CollectionIssue<E>]
Returns issues in declaration and issue source order.
Sourcepub fn into_parts(self) -> (Vec<CollectionEntry<T>>, Vec<CollectionIssue<E>>)
pub fn into_parts(self) -> (Vec<CollectionEntry<T>>, Vec<CollectionIssue<E>>)
Splits the aggregate into valid entries and issues.
Trait Implementations§
Source§impl<T, E> Default for CollectionResult<T, E>
impl<T, E> Default for CollectionResult<T, E>
impl<T: Eq, E: Eq> Eq for CollectionResult<T, E>
impl<T: PartialEq, E: PartialEq> StructuralPartialEq for CollectionResult<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for CollectionResult<T, E>
impl<T, E> RefUnwindSafe for CollectionResult<T, E>
impl<T, E> Send for CollectionResult<T, E>
impl<T, E> Sync for CollectionResult<T, E>
impl<T, E> Unpin for CollectionResult<T, E>
impl<T, E> UnsafeUnpin for CollectionResult<T, E>
impl<T, E> UnwindSafe for CollectionResult<T, E>
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