pub struct IpInvariant<T>(pub T);Expand description
Wrapper type that implements GenericOverIp with Type<I: Ip>=Self.
This can be used to make a compound type implement GenericOverIp with
some portion that is invariant over IP version.
Tuple Fields§
§0: TImplementations§
Source§impl<T> IpInvariant<T>
impl<T> IpInvariant<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes the IpInvariant and returns the wrapped value.
Trait Implementations§
Source§impl<I: Ip, T> GenericOverIp<I> for IpInvariant<T>
impl<I: Ip, T> GenericOverIp<I> for IpInvariant<T>
Source§type Type = IpInvariant<T>
type Type = IpInvariant<T>
The type of
Self when its IP-generic parameter is replaced with the
type NewIp.Auto Trait Implementations§
impl<T> Freeze for IpInvariant<T>where
T: Freeze,
impl<T> RefUnwindSafe for IpInvariant<T>where
T: RefUnwindSafe,
impl<T> Send for IpInvariant<T>where
T: Send,
impl<T> Sync for IpInvariant<T>where
T: Sync,
impl<T> Unpin for IpInvariant<T>where
T: Unpin,
impl<T> UnwindSafe for IpInvariant<T>where
T: UnwindSafe,
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