Skip to content

Commit

Permalink
hide some internal types from doc
Browse files Browse the repository at this point in the history
Signed-off-by: Yilin Chen <[email protected]>
  • Loading branch information
sticnarf committed May 13, 2020
1 parent e239714 commit e21d9b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ where
/// Used for internal traversing.
///
/// You can simply ignore this trait.
#[doc(hidden)]
pub trait TraverseState {
type Net: IpNet;

Expand Down Expand Up @@ -670,6 +671,7 @@ impl ToNetwork<Ipv4Net> for [u8; 4] {
}
}

#[doc(hidden)]
pub struct Ipv4TraverseState {
node: *const IpTrieNode,
prefix: u32,
Expand Down Expand Up @@ -713,6 +715,7 @@ impl TraverseState for Ipv4TraverseState {
}
}

#[doc(hidden)]
pub struct Ipv4PrefixBitIterator {
prefix: u32,
prefix_len: u8,
Expand Down Expand Up @@ -792,6 +795,7 @@ impl ToNetwork<Ipv6Net> for [u16; 8] {
}
}

#[doc(hidden)]
pub struct Ipv6TraverseState {
node: *const IpTrieNode,
prefix: u128,
Expand Down Expand Up @@ -835,6 +839,7 @@ impl TraverseState for Ipv6TraverseState {
}
}

#[doc(hidden)]
pub struct Ipv6PrefixBitIterator {
prefix: u128,
prefix_len: u8,
Expand Down

0 comments on commit e21d9b8

Please sign in to comment.