pub struct PinnedRelationList(/* private fields */);Expand description
A PinnedRelationList can be used to reference multiple documents views.
The item order and occurrences inside a pinned relation list are defined by the developers and users and have semantic meaning, for this reason we do not check against duplicates or ordering here.
Implementations§
Source§impl PinnedRelationList
impl PinnedRelationList
Sourcepub fn new(relations: Vec<DocumentViewId>) -> Self
pub fn new(relations: Vec<DocumentViewId>) -> Self
Returns a new list of pinned relations.
Sourcepub fn document_view_ids(&self) -> &[DocumentViewId]
pub fn document_view_ids(&self) -> &[DocumentViewId]
Returns the list of document view ids.
Sourcepub fn iter(&self) -> Iter<'_, DocumentViewId>
pub fn iter(&self) -> Iter<'_, DocumentViewId>
Returns iterator over document view ids.
Trait Implementations§
Source§impl Clone for PinnedRelationList
impl Clone for PinnedRelationList
Source§fn clone(&self) -> PinnedRelationList
fn clone(&self) -> PinnedRelationList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinnedRelationList
impl Debug for PinnedRelationList
Source§impl<'de> Deserialize<'de> for PinnedRelationList
impl<'de> Deserialize<'de> for PinnedRelationList
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PinnedRelationList
impl PartialEq for PinnedRelationList
Source§impl Serialize for PinnedRelationList
impl Serialize for PinnedRelationList
Source§impl Validate for PinnedRelationList
impl Validate for PinnedRelationList
impl Eq for PinnedRelationList
impl StructuralPartialEq for PinnedRelationList
Auto Trait Implementations§
impl Freeze for PinnedRelationList
impl RefUnwindSafe for PinnedRelationList
impl Send for PinnedRelationList
impl Sync for PinnedRelationList
impl Unpin for PinnedRelationList
impl UnwindSafe for PinnedRelationList
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more