pub struct EmptyScopeConstraint;Expand description
A ScopeConstraint was built with no filters.
A constraint is a conjunction, so an empty one is an AND over nothing: it
matches every row. As one disjunct of an AccessScope that makes the whole
scope allow-all, while is_unconstrained() and is_deny_all() both still
answer false — so the scope looks constrained to every caller that asks.
toolkit-db compiled exactly this shape to an unconditional WHERE true.
Trait Implementations§
Source§impl Debug for EmptyScopeConstraint
impl Debug for EmptyScopeConstraint
Source§impl Display for EmptyScopeConstraint
impl Display for EmptyScopeConstraint
impl Eq for EmptyScopeConstraint
Source§impl Error for EmptyScopeConstraint
impl Error for EmptyScopeConstraint
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for EmptyScopeConstraint
impl PartialEq for EmptyScopeConstraint
impl StructuralPartialEq for EmptyScopeConstraint
Auto Trait Implementations§
impl Freeze for EmptyScopeConstraint
impl RefUnwindSafe for EmptyScopeConstraint
impl Send for EmptyScopeConstraint
impl Sync for EmptyScopeConstraint
impl Unpin for EmptyScopeConstraint
impl UnsafeUnpin for EmptyScopeConstraint
impl UnwindSafe for EmptyScopeConstraint
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