[−][src]Struct intercom_common::type_parser::TypeInfo
Details of a Rust type. Used for translation to other programming languages.
Fields
rust_type: RustType<'s>The type in rust.
pass_by: PassBySpecifies how the value is passed to/from a function. Default: PassBy::Value
is_mutable: boolIs the Rust type defined as mutable? Default: false
array_length: Option<&'s Expr>The length of the array if the Rust type denotes an array.
original: &'s TypeReference to the original type that this type info represents.
Methods
impl<'s, 'p: 's> TypeInfo<'s>[src]
pub fn get_name(&self) -> String[src]
Gets the name of the type in Rust.
pub fn get_leaf(&self) -> &TypeInfo<'s>[src]
Returns the nested type info or self.
Trait Implementations
Auto Trait Implementations
impl<'s> !Send for TypeInfo<'s>
impl<'s> !Sync for TypeInfo<'s>
impl<'s> Unpin for TypeInfo<'s>
impl<'s> !UnwindSafe for TypeInfo<'s>
impl<'s> !RefUnwindSafe for TypeInfo<'s>
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,