Struct scratchstack_aspen::Condition
source · [−]pub struct Condition { /* private fields */ }
Implementations
sourceimpl Condition
impl Condition
pub fn new() -> Self
pub fn append(&mut self, other: &mut Self)
pub fn clear(&mut self)
pub fn contains_key<Q>(&self, key: &Q) -> boolwhere
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn entry(&mut self, key: ConditionOp) -> Entry<'_, ConditionOp, ConditionMap>
pub fn get<Q>(&self, key: &Q) -> Option<&ConditionMap>where
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn get_key_value<Q>(&self, key: &Q) -> Option<(&ConditionOp, &ConditionMap)>where
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn get_mut<Q>(&mut self, key: &Q) -> Option<&mut ConditionMap>where
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn insert(
&mut self,
key: ConditionOp,
value: ConditionMap
) -> Option<ConditionMap>
pub fn into_keys(self) -> IntoKeys<ConditionOp, ConditionMap>
pub fn into_values(self) -> IntoValues<ConditionOp, ConditionMap>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, ConditionOp, ConditionMap>
pub fn iter_mut(&mut self) -> IterMut<'_, ConditionOp, ConditionMap>
pub fn keys(&self) -> Keys<'_, ConditionOp, ConditionMap>
pub fn len(&self) -> usize
pub fn range<T, R>(&self, range: R) -> Range<'_, ConditionOp, ConditionMap>where
ConditionOp: Borrow<T>,
T: Ord + ?Sized,
R: RangeBounds<T>,
pub fn range_mut<T, R>(
&mut self,
range: R
) -> RangeMut<'_, ConditionOp, ConditionMap>where
ConditionOp: Borrow<T>,
T: Ord + ?Sized,
R: RangeBounds<T>,
pub fn remove<Q>(&mut self, key: &Q) -> Option<ConditionMap>where
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn remove_entry<Q>(&mut self, key: &Q) -> Option<(ConditionOp, ConditionMap)>where
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn retain<F>(&mut self, f: F)where
F: FnMut(&ConditionOp, &mut ConditionMap) -> bool,
pub fn split_off<Q>(&mut self, key: &Q) -> Conditionwhere
ConditionOp: Borrow<Q>,
Q: Ord + ?Sized,
pub fn values(&self) -> Values<'_, ConditionOp, ConditionMap>
pub fn values_mut(&mut self) -> ValuesMut<'_, ConditionOp, ConditionMap>
pub fn matches(
&self,
context: &Context,
pv: PolicyVersion
) -> Result<bool, AspenError>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Condition
impl<'de> Deserialize<'de> for Condition
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Extend<(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)> for Condition
impl Extend<(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)> for Condition
sourcefn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (ConditionOp, ConditionMap)>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = (ConditionOp, ConditionMap)>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl<const N: usize> From<[(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>); N]> for Condition
impl<const N: usize> From<[(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>); N]> for Condition
sourcefn from(array: [(ConditionOp, ConditionMap); N]) -> Self
fn from(array: [(ConditionOp, ConditionMap); N]) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)> for Condition
impl FromIterator<(ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)> for Condition
sourcefn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (ConditionOp, ConditionMap)>,
fn from_iter<I>(iter: I) -> Selfwhere
I: IntoIterator<Item = (ConditionOp, ConditionMap)>,
Creates a value from an iterator. Read more
sourceimpl<'a> IntoIterator for &'a Condition
impl<'a> IntoIterator for &'a Condition
type Item = (&'a ConditionOp, &'a BTreeMap<String, StringLikeList<String>, Global>)
type Item = (&'a ConditionOp, &'a BTreeMap<String, StringLikeList<String>, Global>)
The type of the elements being iterated over.
type IntoIter = Iter<'a, ConditionOp, BTreeMap<String, StringLikeList<String>, Global>>
type IntoIter = Iter<'a, ConditionOp, BTreeMap<String, StringLikeList<String>, Global>>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> Iter<'a, ConditionOp, ConditionMap>
fn into_iter(self) -> Iter<'a, ConditionOp, ConditionMap>
Creates an iterator from a value. Read more
sourceimpl<'a> IntoIterator for &'a mut Condition
impl<'a> IntoIterator for &'a mut Condition
type Item = (&'a ConditionOp, &'a mut BTreeMap<String, StringLikeList<String>, Global>)
type Item = (&'a ConditionOp, &'a mut BTreeMap<String, StringLikeList<String>, Global>)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, ConditionOp, BTreeMap<String, StringLikeList<String>, Global>>
type IntoIter = IterMut<'a, ConditionOp, BTreeMap<String, StringLikeList<String>, Global>>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> IterMut<'a, ConditionOp, ConditionMap>
fn into_iter(self) -> IterMut<'a, ConditionOp, ConditionMap>
Creates an iterator from a value. Read more
sourceimpl IntoIterator for Condition
impl IntoIterator for Condition
type Item = (ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)
type Item = (ConditionOp, BTreeMap<String, StringLikeList<String>, Global>)
The type of the elements being iterated over.
type IntoIter = IntoIter<ConditionOp, BTreeMap<String, StringLikeList<String>, Global>, Global>
type IntoIter = IntoIter<ConditionOp, BTreeMap<String, StringLikeList<String>, Global>, Global>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> IntoIter<ConditionOp, ConditionMap>
fn into_iter(self) -> IntoIter<ConditionOp, ConditionMap>
Creates an iterator from a value. Read more
impl Eq for Condition
impl StructuralEq for Condition
impl StructuralPartialEq for Condition
Auto Trait Implementations
impl RefUnwindSafe for Condition
impl Send for Condition
impl Sync for Condition
impl Unpin for Condition
impl UnwindSafe for Condition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more