pub enum Field<'a> {
Show 15 variants
BaseClass(BaseClass<'a>),
DirectVirtualBaseClass(DirectVirtualBaseClass<'a>),
IndirectVirtualBaseClass(IndirectVirtualBaseClass<'a>),
Enumerate(Enumerate<'a>),
FriendFn(FriendFn<'a>),
Index(TypeIndex),
Member(Member<'a>),
StaticMember(StaticMember<'a>),
Method(Method<'a>),
NestedType(NestedType<'a>),
VFuncTable(TypeIndex),
FriendClass(TypeIndex),
OneMethod(OneMethod<'a>),
VFuncOffset(VFuncOffset),
NestedTypeEx(NestedTypeEx<'a>),
}
Expand description
Represents one field within an LF_FIELDLIST
type string.
Variants§
BaseClass(BaseClass<'a>)
DirectVirtualBaseClass(DirectVirtualBaseClass<'a>)
IndirectVirtualBaseClass(IndirectVirtualBaseClass<'a>)
Enumerate(Enumerate<'a>)
FriendFn(FriendFn<'a>)
Index(TypeIndex)
Member(Member<'a>)
StaticMember(StaticMember<'a>)
Method(Method<'a>)
NestedType(NestedType<'a>)
VFuncTable(TypeIndex)
FriendClass(TypeIndex)
OneMethod(OneMethod<'a>)
VFuncOffset(VFuncOffset)
NestedTypeEx(NestedTypeEx<'a>)
Implementations§
Source§impl<'a> Field<'a>
impl<'a> Field<'a>
Sourcepub fn parse(p: &mut Parser<'a>) -> Result<Self, ParserError>
pub fn parse(p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses one field within an LF_FIELDLIST
type string.
Unlike most of the parse()
methods defined in this library, this function requires a
Parser
instance, rather than just working directly with &[u8]
. This is because the
field records do not have a length field; the type of the field is required to know how
many bytes to decode in each field.
So the act of parsing a field is what is needed for locating the next field.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'a>
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