pub(crate) struct RecursionCheck {
current: usize,
}
Fields§
§current: usize
Implementations§
source§impl RecursionCheck
impl RecursionCheck
pub(crate) fn check_depth(_depth: usize) -> Result<(), CustomError>
fn enter(&mut self) -> Result<(), CustomError>
fn exit(&mut self)
Trait Implementations§
source§impl Clone for RecursionCheck
impl Clone for RecursionCheck
source§fn clone(&self) -> RecursionCheck
fn clone(&self) -> RecursionCheck
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 RecursionCheck
impl Debug for RecursionCheck
source§impl Default for RecursionCheck
impl Default for RecursionCheck
source§fn default() -> RecursionCheck
fn default() -> RecursionCheck
Returns the “default value” for a type. Read more
source§impl PartialEq for RecursionCheck
impl PartialEq for RecursionCheck
impl Eq for RecursionCheck
impl StructuralPartialEq for RecursionCheck
Auto Trait Implementations§
impl Freeze for RecursionCheck
impl RefUnwindSafe for RecursionCheck
impl Send for RecursionCheck
impl Sync for RecursionCheck
impl Unpin for RecursionCheck
impl UnwindSafe for RecursionCheck
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.