pub struct Invariant<T, F = Box<dyn FnMut(<T as ToOwned>::Owned) -> bool>>{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<T, F> BuildHasher for Invariant<T, F>
impl<T, F> BuildHasher for Invariant<T, F>
Source§type Hasher = <T as BuildHasher>::Hasher
type Hasher = <T as BuildHasher>::Hasher
Type of the hasher that will be created.
Source§fn build_hasher(&self) -> Self::Hasher
fn build_hasher(&self) -> Self::Hasher
Creates a new hasher. Read more
Source§impl<T, F: Debug + Any> Error for Invariant<T, F>
impl<T, F: Debug + Any> Error for Invariant<T, F>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<T, F> IntoIterator for Invariant<T, F>where
T: ToOwned + IntoIterator,
impl<T, F> IntoIterator for Invariant<T, F>where
T: ToOwned + IntoIterator,
Source§impl<T, F> Ord for Invariant<T, F>
impl<T, F> Ord for Invariant<T, F>
Source§impl<U, T, G, F> PartialOrd<Invariant<U, G>> for Invariant<T, F>
impl<U, T, G, F> PartialOrd<Invariant<U, G>> for Invariant<T, F>
Source§impl<T, F> ToSocketAddrs for Invariant<T, F>where
T: ToOwned + ToSocketAddrs,
impl<T, F> ToSocketAddrs for Invariant<T, F>where
T: ToOwned + ToSocketAddrs,
Source§type Iter = <T as ToSocketAddrs>::Iter
type Iter = <T as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond
to.
Source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddr
s. Read moreimpl<T, F: Copy> Copy for Invariant<T, F>
impl<T, F> Eq for Invariant<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for Invariant<T, F>
impl<T, F> RefUnwindSafe for Invariant<T, F>
impl<T, F> Send for Invariant<T, F>
impl<T, F> Sync for Invariant<T, F>
impl<T, F> Unpin for Invariant<T, F>
impl<T, F> UnwindSafe for Invariant<T, F>
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