Struct oxygengine::prelude::utils::TagFilters
source · pub struct TagFilters { /* private fields */ }
Implementations§
source§impl TagFilters
impl TagFilters
pub fn inclusive() -> TagFilters
pub fn exclusive() -> TagFilters
pub fn none() -> TagFilters
pub fn all() -> TagFilters
pub fn include(self, tag: impl ToString) -> TagFilters
pub fn include_range( self, tags: impl Iterator<Item = impl ToString> ) -> TagFilters
pub fn exclude(self, tag: impl ToString) -> TagFilters
pub fn exclude_range( self, tags: impl Iterator<Item = impl ToString> ) -> TagFilters
pub fn combine(self, other: &TagFilters) -> TagFilters
pub fn validate_tag(&self, tag: &str) -> bool
Trait Implementations§
source§impl Clone for TagFilters
impl Clone for TagFilters
source§fn clone(&self) -> TagFilters
fn clone(&self) -> TagFilters
Returns a copy 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 TagFilters
impl Debug for TagFilters
source§impl Default for TagFilters
impl Default for TagFilters
source§fn default() -> TagFilters
fn default() -> TagFilters
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TagFilters
impl<'de> Deserialize<'de> for TagFilters
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<TagFilters, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<TagFilters, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<TagFilters> for TagFilters
impl PartialEq<TagFilters> for TagFilters
source§fn eq(&self, other: &TagFilters) -> bool
fn eq(&self, other: &TagFilters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TagFilters
impl Serialize for TagFilters
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TagFilters
impl StructuralEq for TagFilters
impl StructuralPartialEq for TagFilters
Auto Trait Implementations§
impl RefUnwindSafe for TagFilters
impl Send for TagFilters
impl Sync for TagFilters
impl Unpin for TagFilters
impl UnwindSafe for TagFilters
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more