pub struct SwIfIndex(/* private fields */);Expand description
Software interface index
Implementations§
Source§impl SwIfIndex
impl SwIfIndex
Sourcepub fn parse(_vm: &MainRef, s: &str) -> Result<Self, SwIfIndexParseError>
pub fn parse(_vm: &MainRef, s: &str) -> Result<Self, SwIfIndexParseError>
Parse the given interface name to a value of this type
Sourcepub fn display<'a>(&self, vm: &'a MainRef) -> SwIfIndexDisplay<'a>
pub fn display<'a>(&self, vm: &'a MainRef) -> SwIfIndexDisplay<'a>
Return an object which implements fmt::Display
Trait Implementations§
impl Copy for SwIfIndex
impl Eq for SwIfIndex
Source§impl Ord for SwIfIndex
impl Ord for SwIfIndex
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SwIfIndex
impl PartialOrd for SwIfIndex
impl StructuralPartialEq for SwIfIndex
Auto Trait Implementations§
impl Freeze for SwIfIndex
impl RefUnwindSafe for SwIfIndex
impl Send for SwIfIndex
impl Sync for SwIfIndex
impl Unpin for SwIfIndex
impl UnsafeUnpin for SwIfIndex
impl UnwindSafe for SwIfIndex
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