pub struct ResolvedType {
pub name: String,
pub kind: TypeKind,
pub encoded_length: usize,
pub rust_type: String,
pub is_array: bool,
pub array_length: Option<usize>,
}Expand description
Resolved type information.
Fields§
§name: StringType name.
kind: TypeKindType kind.
encoded_length: usizeEncoded length in bytes.
rust_type: StringRust type representation.
is_array: boolWhether this is an array type.
array_length: Option<usize>Array length (if array).
Implementations§
Source§impl ResolvedType
impl ResolvedType
Sourcepub fn from_type_def(type_def: &TypeDef) -> Self
pub fn from_type_def(type_def: &TypeDef) -> Self
Creates a resolved type from a type definition.
Sourcepub fn from_primitive(prim: PrimitiveType) -> Self
pub fn from_primitive(prim: PrimitiveType) -> Self
Creates a resolved type for a built-in primitive.
Trait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedType
impl RefUnwindSafe for ResolvedType
impl Send for ResolvedType
impl Sync for ResolvedType
impl Unpin for ResolvedType
impl UnwindSafe for ResolvedType
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