pub struct MatchRecognizePlanningCapabilities { /* private fields */ }Expand description
Optional features an importer can represent without changing their meaning.
The planner rejects a request that uses a disabled feature. This type records individual planning features, not a named database or file-format profile.
Implementations§
Source§impl MatchRecognizePlanningCapabilities
impl MatchRecognizePlanningCapabilities
Sourcepub const fn restricted(match_sequence_number: bool, excluded: bool) -> Self
pub const fn restricted(match_sequence_number: bool, excluded: bool) -> Self
Enable or disable each optional feature explicitly.
Sourcepub const fn match_sequence_number(self) -> bool
pub const fn match_sequence_number(self) -> bool
Return whether MATCH_SEQUENCE_NUMBER expressions are enabled.
Sourcepub fn required_for_spec(spec: &BoundMatchSpec) -> Result<Self>
pub fn required_for_spec(spec: &BoundMatchSpec) -> Result<Self>
Return the optional features that spec actually uses.
Sourcepub fn validate_for_spec(self, spec: &BoundMatchSpec) -> Result<()>
pub fn validate_for_spec(self, spec: &BoundMatchSpec) -> Result<()>
Check that every optional feature used by spec is enabled.
§Errors
Returns a planning error for a MATCH_SEQUENCE_NUMBER or EXCLUDED
expression when its corresponding capability is disabled.
Trait Implementations§
impl Copy for MatchRecognizePlanningCapabilities
impl Eq for MatchRecognizePlanningCapabilities
impl StructuralPartialEq for MatchRecognizePlanningCapabilities
Auto Trait Implementations§
impl Forget for MatchRecognizePlanningCapabilities
impl Freeze for MatchRecognizePlanningCapabilities
impl Move for MatchRecognizePlanningCapabilities
impl RefUnwindSafe for MatchRecognizePlanningCapabilities
impl Send for MatchRecognizePlanningCapabilities
impl Sync for MatchRecognizePlanningCapabilities
impl Unpin for MatchRecognizePlanningCapabilities
impl UnsafeUnpin for MatchRecognizePlanningCapabilities
impl UnwindSafe for MatchRecognizePlanningCapabilities
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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