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
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
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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