Struct Ipv4Addr

pub struct Ipv4Addr(/* private field */);

no_std implementation of std::net::Ipv4Addr.

Note: because we intend to replace this type with core::net::Ipv4Addr as soon as it is stabilized, the identity of this type should not be considered semver-stable. However, the attached interfaces are stable; they form a subset of those provided by core::net::Ipv4Addr.

Trait Implementations

impl AsRef<[u8; 4]> for Ipv4Addr

fn as_ref(&self) -> &[u8; 4]

impl Clone for Ipv4Addr

fn clone(&self) -> Ipv4Addr

impl Copy for Ipv4Addr

impl Debug for Ipv4Addr

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for Ipv4Addr

impl From<Ipv4Addr> for Ipv4Addr

fn from(addr: Ipv4Addr) -> Self

impl From<[u8; 4]> for Ipv4Addr

fn from(value: [u8; 4]) -> Self

impl Hash for Ipv4Addr

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for Ipv4Addr

fn eq(&self, other: &Ipv4Addr) -> bool

impl StructuralPartialEq for Ipv4Addr

impl TryFrom<&str> for Ipv4Addr

type Error = AddrParseError;
fn try_from(value: &str) -> Result<Self, Self::Error>

Auto Trait Implementations

impl Freeze for Ipv4Addr

impl RefUnwindSafe for Ipv4Addr

impl Send for Ipv4Addr

impl Sync for Ipv4Addr

impl Unpin for Ipv4Addr

impl UnsafeUnpin for Ipv4Addr

impl UnwindSafe for Ipv4Addr

Blanket Implementations

impl<T> Any for Ipv4Addr where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Ipv4Addr where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Ipv4Addr where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Ipv4Addr where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Ipv4Addr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Ipv4Addr where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Ipv4Addr where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Ipv4Addr where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Ipv4Addr where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>