Enum llvm_mapper::block::attributes::AttributeError [−][src]
pub enum AttributeError {
UnknownAttributeCode(TryFromPrimitiveError<AttributeCode>),
UnknownAttributeKind(TryFromPrimitiveError<AttributeKind>),
WrongBlock(AttributeCode),
TooShort,
BadString,
UnknownAttributeId(TryFromPrimitiveError<AttributeId>),
AttributeMalformed(&'static str, AttributeId),
IntAttributeUnsupported(AttributeId),
BadAttributeGroup(u32),
}
Expand description
Errors that can occur when mapping attribute blocks.
Variants
UnknownAttributeCode(TryFromPrimitiveError<AttributeCode>)
An unknown record code was seen.
Tuple Fields of UnknownAttributeCode
UnknownAttributeKind(TryFromPrimitiveError<AttributeKind>)
An unknown attribute kind (format) was seen.
Tuple Fields of UnknownAttributeKind
WrongBlock(AttributeCode)
The given code was seen in an unexpected block.
Tuple Fields of WrongBlock
The attribute couldn’t be constructed because of missing fields.
The attribute has an invalid string key or string balue.
UnknownAttributeId(TryFromPrimitiveError<AttributeId>)
The attribute has an unknown (integral) ID.
Tuple Fields of UnknownAttributeId
AttributeMalformed(&'static str, AttributeId)
The attribute’s ID doesn’t match the format supplied.
Tuple Fields of AttributeMalformed
0: &'static str
1: AttributeId
IntAttributeUnsupported(AttributeId)
We recognize the attribute’s ID as an integer attribute, but we don’t support it yet.
Tuple Fields of IntAttributeUnsupported
0: AttributeId
BadAttributeGroup(u32)
An entry record asked for a nonexistent attribute group.
Tuple Fields of BadAttributeGroup
0: u32
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.