pub struct ManagedFactSelection(/* private fields */);Expand description
Deterministically ordered identities owned by one managed schema scope.
Implementations§
Source§impl ManagedFactSelection
impl ManagedFactSelection
Sourcepub fn new(
fact_ids: impl IntoIterator<Item = SchemaFactId>,
) -> Result<Self, Diagnostic>
pub fn new( fact_ids: impl IntoIterator<Item = SchemaFactId>, ) -> Result<Self, Diagnostic>
Build a bounded selection, rejecting duplicate fact identities.
Sourcepub fn contains(&self, fact_id: &SchemaFactId) -> bool
pub fn contains(&self, fact_id: &SchemaFactId) -> bool
Return whether this selection contains one fact identity.
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaFactId>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &SchemaFactId>
Iterate in stable fact-identity order.
Trait Implementations§
Source§impl Clone for ManagedFactSelection
impl Clone for ManagedFactSelection
Source§fn clone(&self) -> ManagedFactSelection
fn clone(&self) -> ManagedFactSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ManagedFactSelection
impl Debug for ManagedFactSelection
impl Eq for ManagedFactSelection
Source§impl PartialEq for ManagedFactSelection
impl PartialEq for ManagedFactSelection
Source§impl Serialize for ManagedFactSelection
impl Serialize for ManagedFactSelection
impl StructuralPartialEq for ManagedFactSelection
Auto Trait Implementations§
impl Freeze for ManagedFactSelection
impl RefUnwindSafe for ManagedFactSelection
impl Send for ManagedFactSelection
impl Sync for ManagedFactSelection
impl Unpin for ManagedFactSelection
impl UnsafeUnpin for ManagedFactSelection
impl UnwindSafe for ManagedFactSelection
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