Docs.rs
generic-ip-0.1.1
generic-ip 0.1.1
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
benmaddison
Dependencies
bitvec ^1.0
normal
ipnet ^2.4
normal
optional
num-traits ^0.2
normal
proptest ^1.0
normal
optional
criterion ^0.5
dev
itertools ^0.12
dev
paste ^1.0
dev
proptest ^1.0
dev
version-sync ^0.9
dev
Versions
100%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ip
0.1.1
Netmask
Aliased Type
Trait Implementations
From<PrefixLength<A>>
Netmask
TryFrom<Mask<Net>>
TryFrom<Mask<Net>>
In ip::
concrete
ip
::
concrete
Type Alias
Netmask
Copy item path
Source
pub type Netmask<A> =
Mask
<
Net
, A>;
Expand description
An IP Netmask.
Aliased Type
§
pub struct Netmask<A>(
/* private fields */
);
Trait Implementations
§
Source
§
impl<A:
Afi
>
From
<
PrefixLength
<A>> for
Netmask
<A>
Source
§
fn
from
(len:
PrefixLength
<A>) -> Self
Converts to this type from the input type.
Source
§
impl
TryFrom
<
Mask
<
Net
>> for
Netmask
<
Ipv4
>
Source
§
type
Error
=
Error
The type returned in the event of a conversion error.
Source
§
fn
try_from
(from:
Netmask
) ->
Result
<Self, Self::
Error
>
Performs the conversion.
Source
§
impl
TryFrom
<
Mask
<
Net
>> for
Netmask
<
Ipv6
>
Source
§
type
Error
=
Error
The type returned in the event of a conversion error.
Source
§
fn
try_from
(from:
Netmask
) ->
Result
<Self, Self::
Error
>
Performs the conversion.
Source
§
impl<A:
Afi
>
Netmask
for
Netmask
<A>