Skip to main content

ParseFromWithTwoInputs

Trait ParseFromWithTwoInputs 

Source
pub trait ParseFromWithTwoInputs<'a, I1, I2>: Sized {
    type Error;

    // Required method
    fn parse(
        cur: &mut SliceReader<'a>,
        i1: I1,
        i2: I2,
    ) -> Result<Self, Self::Error>;
}
Expand description

Parse Self from the cursor with two immutable context arguments.

Required Associated Types§

Required Methods§

Source

fn parse(cur: &mut SliceReader<'a>, i1: I1, i2: I2) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> ParseFromWithTwoInputs<'a, u8, usize> for Ipv4Net

Source§

type Error = Ipv4PrefixParsingError

Source§

fn parse( cur: &mut SliceReader<'a>, prefix_len: u8, prefix_offset: usize, ) -> Result<Self, Self::Error>

Source§

impl<'a> ParseFromWithTwoInputs<'a, u8, usize> for Ipv6Net

Source§

type Error = Ipv6PrefixParsingError

Source§

fn parse( cur: &mut SliceReader<'a>, prefix_len: u8, prefix_offset: usize, ) -> Result<Self, Self::Error>

Implementors§