pub struct PrefixPlan { /* private fields */ }Expand description
An optional fixed prefix whose tags cannot be mistaken for a direct packet.
Implementations§
Source§impl PrefixPlan
impl PrefixPlan
pub const fn fixed<const BYTES: u8, const RAW_MASK: u8, const FIRST: u8, const SECOND: u8>() -> Self
pub const fn extent(self) -> NonZero<u8>
pub const fn raw_mask(self) -> NonZero<u8>
pub fn try_parse<'a, 'id>( self, source: View<'a, 'id>, ) -> Result<Frame<'a, 'id>, PrefixError>
Trait Implementations§
Source§impl Clone for PrefixPlan
impl Clone for PrefixPlan
impl Copy for PrefixPlan
Source§impl Debug for PrefixPlan
impl Debug for PrefixPlan
impl Eq for PrefixPlan
Source§impl PartialEq for PrefixPlan
impl PartialEq for PrefixPlan
impl StructuralPartialEq for PrefixPlan
Auto Trait Implementations§
impl Forget for PrefixPlan
impl Freeze for PrefixPlan
impl RefUnwindSafe for PrefixPlan
impl Send for PrefixPlan
impl Sync for PrefixPlan
impl Unpin for PrefixPlan
impl UnsafeUnpin for PrefixPlan
impl UnwindSafe for PrefixPlan
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