Trait AsAddr
act_zero
pub trait AsAddr { type Addr: AddrLike; pub fn as_addr(&self) -> &Self::Addr; }
Implemented by addresses and references to addresses
type Addr: AddrLike
The inner address type
pub fn as_addr(&self) -> &Self::Addr
Obtain a direct reference to the address
impl<T: AsAddr + ?Sized> AsAddr for &T
type Addr = T::Addr
impl<T: Actor + ?Sized> AsAddr for Addr<T>
type Addr = Self
impl<T: Actor + ?Sized> AsAddr for WeakAddr<T>