[−][src]Struct rpki::resources::AsId
An AS number.
Methods
impl AsId
[src]
pub const MIN: AsId
[src]
pub const MAX: AsId
[src]
pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>
[src]
Takes an AS number from the beginning of an encoded value.
pub fn encode(self) -> impl Values
[src]
Trait Implementations
impl From<AsId> for AsBlock
[src]
impl From<u32> for AsId
[src]
impl From<AsId> for u32
[src]
impl Clone for AsId
[src]
impl Copy for AsId
[src]
impl Eq for AsId
[src]
impl Ord for AsId
[src]
fn cmp(&self, other: &AsId) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AsId> for AsId
[src]
impl PartialOrd<AsId> for AsId
[src]
fn partial_cmp(&self, other: &AsId) -> Option<Ordering>
[src]
fn lt(&self, other: &AsId) -> bool
[src]
fn le(&self, other: &AsId) -> bool
[src]
fn gt(&self, other: &AsId) -> bool
[src]
fn ge(&self, other: &AsId) -> bool
[src]
impl Display for AsId
[src]
impl Debug for AsId
[src]
impl FromStr for AsId
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Add<u32> for AsId
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u32) -> Self
[src]
impl Hash for AsId
[src]
Auto Trait Implementations
impl Send for AsId
impl Sync for AsId
impl Unpin for AsId
impl UnwindSafe for AsId
impl RefUnwindSafe for AsId
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,