Struct aidl_parser::ast::Type [−][src]
pub struct Type {
pub name: String,
pub kind: TypeKind,
pub generic_types: Vec<Type>,
pub symbol_range: Range,
pub full_range: Range,
}
Fields
name: String
kind: TypeKind
generic_types: Vec<Type>
symbol_range: Range
full_range: Range
Implementations
pub fn simple_type<S: Into<String>>(
name: S,
kind: TypeKind,
lookup: &LineColLookup<'_>,
start: usize,
end: usize
) -> Self
pub fn array(
param: Type,
lookup: &LineColLookup<'_>,
start: usize,
end: usize,
fr_start: usize,
fr_end: usize
) -> Self
pub fn list(
param: Type,
lookup: &LineColLookup<'_>,
start: usize,
end: usize,
fr_start: usize,
fr_end: usize
) -> Self
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Type
impl UnwindSafe for Type
Blanket Implementations
Mutably borrows from an owned value. Read more