pub enum CountBound {
Unlimited,
AtMost(u64),
}Expand description
A numeric upper bound axis (e.g. “at most N tool calls”).
Unlimited is the top; AtMost(n) ⊑ AtMost(m) ⟺ n ≤ m. The meet is the
tighter (smaller) bound.
Variants§
Implementations§
Source§impl CountBound
impl CountBound
Sourcepub fn top() -> CountBound
pub fn top() -> CountBound
The top of this axis (Unlimited).
Sourcepub fn leq(&self, other: &CountBound) -> bool
pub fn leq(&self, other: &CountBound) -> bool
self ⊑ other — is self at least as tight a bound as other?
Sourcepub fn meet(&self, other: &CountBound) -> CountBound
pub fn meet(&self, other: &CountBound) -> CountBound
self ⊓ other — the tighter bound.
Trait Implementations§
Source§impl Clone for CountBound
impl Clone for CountBound
Source§fn clone(&self) -> CountBound
fn clone(&self) -> CountBound
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CountBound
Source§impl CountBoundExt for CountBound
impl CountBoundExt for CountBound
Source§impl Debug for CountBound
impl Debug for CountBound
Source§impl<'de> Deserialize<'de> for CountBound
impl<'de> Deserialize<'de> for CountBound
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CountBound, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CountBound, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CountBound
Source§impl PartialEq for CountBound
impl PartialEq for CountBound
Source§fn eq(&self, other: &CountBound) -> bool
fn eq(&self, other: &CountBound) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CountBound
impl Serialize for CountBound
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 StructuralPartialEq for CountBound
Auto Trait Implementations§
impl Freeze for CountBound
impl RefUnwindSafe for CountBound
impl Send for CountBound
impl Sync for CountBound
impl Unpin for CountBound
impl UnsafeUnpin for CountBound
impl UnwindSafe for CountBound
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<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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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