pub struct AddressRange { /* private fields */ }Expand description
A range of addresses corresponding to some NetAddress.
The only way to create an instance of AddressRange is from a
NetAddress or Address, thus only valid ranges are represented by
this type.
This type can be used as a key in a key-value collection that uses Ord for
its keys. (NB: the equality is defined as “if the ranges overlap — they
are equal”)
Implementations§
Trait Implementations§
Source§impl Clone for AddressRange
impl Clone for AddressRange
Source§fn clone(&self) -> AddressRange
fn clone(&self) -> AddressRange
Returns a duplicate 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 moreSource§impl Debug for AddressRange
impl Debug for AddressRange
Source§impl Display for AddressRange
impl Display for AddressRange
Source§impl From<Address> for AddressRange
impl From<Address> for AddressRange
Source§impl From<AddressRange> for NetAddress
impl From<AddressRange> for NetAddress
Source§fn from(range: AddressRange) -> Self
fn from(range: AddressRange) -> Self
Converts to this type from the input type.
Source§impl From<NetAddress> for AddressRange
impl From<NetAddress> for AddressRange
Source§fn from(net: NetAddress) -> Self
fn from(net: NetAddress) -> Self
Converts to this type from the input type.
Source§impl Ord for AddressRange
impl Ord for AddressRange
Source§impl PartialEq for AddressRange
impl PartialEq for AddressRange
Source§impl PartialOrd for AddressRange
impl PartialOrd for AddressRange
impl Copy for AddressRange
impl Eq for AddressRange
Auto Trait Implementations§
impl Freeze for AddressRange
impl RefUnwindSafe for AddressRange
impl Send for AddressRange
impl Sync for AddressRange
impl Unpin for AddressRange
impl UnwindSafe for AddressRange
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