Struct aidl_parser::ast::Type
source · 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§
source§impl Type
impl Type
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
pub fn non_generic_list(
lookup: &LineColLookup<'_>,
start: usize,
end: usize
) -> Self
pub fn map(
key_param: Type,
value_param: Type,
lookup: &LineColLookup<'_>,
start: usize,
end: usize,
fr_start: usize,
fr_end: usize
) -> Self
pub fn non_generic_map(
lookup: &LineColLookup<'_>,
start: usize,
end: usize
) -> Self
pub fn android_type<S: Into<String>>(
name: S,
android_kind: AndroidTypeKind,
lookup: &LineColLookup<'_>,
start: usize,
end: usize
) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
source§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