AsAddr

Trait AsAddr 

Source
pub trait AsAddr {
    type Addr: AddrLike;

    // Required method
    fn as_addr(&self) -> &Self::Addr;
}
Expand description

Implemented by addresses and references to addresses

Required Associated Types§

Source

type Addr: AddrLike

The inner address type

Required Methods§

Source

fn as_addr(&self) -> &Self::Addr

Obtain a direct reference to the address

Implementations on Foreign Types§

Source§

impl<T: AsAddr + ?Sized> AsAddr for &T

Source§

type Addr = <T as AsAddr>::Addr

Source§

fn as_addr(&self) -> &Self::Addr

Implementors§

Source§

impl<T: Actor + ?Sized> AsAddr for Addr<T>

Source§

type Addr = Addr<T>

Source§

impl<T: Actor + ?Sized> AsAddr for WeakAddr<T>