pub enum TypeData<'a> {
Show 22 variants
Array(Array<'a>),
Struct(Struct<'a>),
Union(Union<'a>),
Enum(Enum<'a>),
Proc(&'a Proc),
MemberFunc(&'a MemberFunc),
VTableShape(VTableShapeData<'a>),
Pointer(Pointer<'a>),
Modifier(TypeModifier),
FieldList(FieldList<'a>),
MethodList(MethodListData<'a>),
ArgList(ArgList<'a>),
Alias(Alias<'a>),
UdtSrcLine(&'a UdtSrcLine),
UdtModSrcLine(&'a UdtModSrcLine),
FuncId(FuncId<'a>),
MFuncId(MFuncId<'a>),
StringId(StringId<'a>),
SubStrList(SubStrList<'a>),
BuildInfo(BuildInfo<'a>),
VFTable(&'a VFTable),
Unknown,
}
Expand description
Parsed details of a type record.
Variants§
Array(Array<'a>)
Struct(Struct<'a>)
Union(Union<'a>)
Enum(Enum<'a>)
Proc(&'a Proc)
MemberFunc(&'a MemberFunc)
VTableShape(VTableShapeData<'a>)
Pointer(Pointer<'a>)
Modifier(TypeModifier)
FieldList(FieldList<'a>)
MethodList(MethodListData<'a>)
ArgList(ArgList<'a>)
Alias(Alias<'a>)
UdtSrcLine(&'a UdtSrcLine)
UdtModSrcLine(&'a UdtModSrcLine)
FuncId(FuncId<'a>)
MFuncId(MFuncId<'a>)
StringId(StringId<'a>)
SubStrList(SubStrList<'a>)
BuildInfo(BuildInfo<'a>)
VFTable(&'a VFTable)
Unknown
Implementations§
Source§impl<'a> TypeData<'a>
impl<'a> TypeData<'a>
Sourcepub fn parse_bytes(kind: Leaf, bytes: &'a [u8]) -> Result<Self, ParserError>
pub fn parse_bytes(kind: Leaf, bytes: &'a [u8]) -> Result<Self, ParserError>
Parses the payload of a type record.
Sourcepub fn parse(kind: Leaf, p: &mut Parser<'a>) -> Result<Self, ParserError>
pub fn parse(kind: Leaf, p: &mut Parser<'a>) -> Result<Self, ParserError>
Parses the payload of a type record, using a Parser
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TypeData<'a>
impl<'a> RefUnwindSafe for TypeData<'a>
impl<'a> Send for TypeData<'a>
impl<'a> Sync for TypeData<'a>
impl<'a> Unpin for TypeData<'a>
impl<'a> UnwindSafe for TypeData<'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