Enum libp2p_core::either::EitherName
source · pub enum EitherName<A, B> {
A(A),
B(B),
}
Variants§
Trait Implementations§
source§impl<A: Clone, B: Clone> Clone for EitherName<A, B>
impl<A: Clone, B: Clone> Clone for EitherName<A, B>
source§fn clone(&self) -> EitherName<A, B>
fn clone(&self) -> EitherName<A, B>
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 more