Enum FieldEnum

#[repr(u8)]
pub enum FieldEnum {
Show 29 variants XFlagsF = 0, VarHopF = 1, XStampF = 2, XBits0F = 3, XBits1F = 4, XBits2F = 5, XBits3F = 6, PointHashF = 7, PointTypeF = 8, SizeF = 9, PubKeyF = 10, SignatureF = 11, GroupIDF = 12, DomainF = 13, StampF = 14, NPartsF = 15, LinksLenF = 16, DataSizeF = 17, PathSegmF = 18, PathF = 19, Part0F = 20, Part1F = 21, Part2F = 22, Part3F = 23, Part4F = 24, Part5F = 25, Part6F = 26, Part7F = 27, DataF = 28,
}
Expand description

An enum that provides access to the fields in a Point

Variants§

§

XFlagsF = 0

§

VarHopF = 1

§

XStampF = 2

§

XBits0F = 3

§

XBits1F = 4

§

XBits2F = 5

§

XBits3F = 6

§

PointHashF = 7

§

PointTypeF = 8

§

SizeF = 9

§

PubKeyF = 10

§

SignatureF = 11

§

GroupIDF = 12

§

DomainF = 13

§

StampF = 14

§

NPartsF = 15

§

LinksLenF = 16

§

DataSizeF = 17

§

PathSegmF = 18

§

PathF = 19

§

Part0F = 20

§

Part1F = 21

§

Part2F = 22

§

Part3F = 23

§

Part4F = 24

§

Part5F = 25

§

Part6F = 26

§

Part7F = 27

§

DataF = 28

Implementations§

§

impl FieldEnum

pub fn try_to_abe(self, abl: ABList) -> Result<Vec<ABE>, Error>

§

impl FieldEnum

pub const LIST: [FieldEnum; 29]

pub fn try_from_name(id: &str) -> Option<FieldEnum>

pub fn try_from_id(id: &[u8]) -> Option<FieldEnum>

pub const fn info(self) -> FieldInfo

§

impl FieldEnum

pub fn mut_route(self, header: &mut XHeader) -> Option<&mut [u8]>

§

impl FieldEnum

pub fn ptr_getter(self) -> GetPred<PointPtr>

pub fn fixed_size(self) -> Option<usize>

pub fn bytes(self, point: &dyn Point, out: &mut dyn Write) -> Result<(), Error>

This always returns something even if the field doesn’t exists for the specific point

pub fn display( self, point: &dyn Point, out: &mut dyn Write, ) -> Result<(), Error>

pub fn into_abe(self, point: &dyn Point) -> String

pub fn abe(self, point: &dyn Point, out: &mut dyn Write) -> Result<(), Error>

Trait Implementations§

§

impl Clone for FieldEnum

§

fn clone(&self) -> FieldEnum

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for FieldEnum

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for FieldEnum

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromStr for FieldEnum

§

type Err = NoSuchField

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<FieldEnum, <FieldEnum as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl PartialEq for FieldEnum

§

fn eq(&self, other: &FieldEnum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl TryFrom<FieldEnum> for PredicateType

§

type Error = ()

The type returned in the event of a conversion error.
§

fn try_from(f: FieldEnum) -> Result<PredicateType, ()>

Performs the conversion.
§

impl TryInto<FieldEnum> for PredicateType

§

type Error = FieldEnum

The type returned in the event of a conversion error.
§

fn try_into( self, ) -> Result<FieldEnum, <PredicateType as TryInto<FieldEnum>>::Error>

Performs the conversion.
§

impl Copy for FieldEnum

§

impl Eq for FieldEnum

§

impl StructuralPartialEq for FieldEnum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more