pub struct ScopeConstraint { /* private fields */ }Expand description
A conjunction (AND) of scope filters — one access path.
All filters within a constraint must match simultaneously for a row to be accessible via this path.
Implementations§
Source§impl ScopeConstraint
impl ScopeConstraint
Sourcepub fn new(filters: Vec<ScopeFilter>) -> Self
pub fn new(filters: Vec<ScopeFilter>) -> Self
Create a new scope constraint from a list of filters.
Sourcepub fn filters(&self) -> &[ScopeFilter]
pub fn filters(&self) -> &[ScopeFilter]
The filters in this constraint (AND-ed together).
Trait Implementations§
Source§impl Clone for ScopeConstraint
impl Clone for ScopeConstraint
Source§fn clone(&self) -> ScopeConstraint
fn clone(&self) -> ScopeConstraint
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 ScopeConstraint
impl Debug for ScopeConstraint
Source§impl PartialEq for ScopeConstraint
impl PartialEq for ScopeConstraint
impl StructuralPartialEq for ScopeConstraint
Auto Trait Implementations§
impl Freeze for ScopeConstraint
impl RefUnwindSafe for ScopeConstraint
impl Send for ScopeConstraint
impl Sync for ScopeConstraint
impl Unpin for ScopeConstraint
impl UnsafeUnpin for ScopeConstraint
impl UnwindSafe for ScopeConstraint
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