pub enum Query {
None,
Any,
Optional,
}Expand description
Special query values for entity filtering.
These correspond to PyBIDS’ Query.NONE, Query.ANY, and Query.OPTIONAL
sentinel values that modify how entity filters behave beyond simple value
matching.
§Example
// Find files that have a session entity (any value)
let files = layout.get().query_any("session").collect().unwrap();
// Find files that do NOT have a session entity
let files = layout.get().query_none("session").collect().unwrap();Variants§
None
The entity must not be defined on the file. Files that have any value for this entity are excluded.
Any
The entity must be defined (with any value). Files missing this entity are excluded.
Optional
The entity is optional — no filtering is applied regardless of whether the entity is present or absent.
Trait Implementations§
impl Eq for Query
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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<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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.