pub struct ValidationCache { /* private fields */ }Implementations§
Source§impl ValidationCache
impl ValidationCache
pub fn new() -> Self
pub fn get(&self, key: &str) -> Option<&CachedValidation>
pub fn insert(&mut self, key: impl Into<String>, result: ValidationResult)
pub fn remove(&mut self, key: &str)
pub fn clear(&mut self)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Debug for ValidationCache
impl Debug for ValidationCache
Source§impl Default for ValidationCache
impl Default for ValidationCache
Source§fn default() -> ValidationCache
fn default() -> ValidationCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationCache
impl RefUnwindSafe for ValidationCache
impl Send for ValidationCache
impl Sync for ValidationCache
impl Unpin for ValidationCache
impl UnsafeUnpin for ValidationCache
impl UnwindSafe for ValidationCache
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