[−][src]Enum genco::dart::Dart
Dart token specialization.
Variants
built-in type.
Fields of BuiltIn
name: &'static str
The built-in type.
the void type.
the dynamic type.
Type(Type<'el>)
referenced types.
Implementations
impl<'el> Dart<'el>
[src]
pub fn alias(&self, alias: impl Into<Cons<'el>>) -> Dart<'el>
[src]
Change the imported alias for this type.
pub fn name(&self, name: impl Into<Cons<'el>>) -> Dart<'el>
[src]
Change the imported name for this type.
pub fn with_arguments(&self, arguments: Vec<Dart<'el>>) -> Dart<'el>
[src]
Add arguments to the given variable.
Only applies to classes, any other will return the same value.
pub fn arguments(&self) -> Option<&[Dart<'el>]>
[src]
Get the arguments.
pub fn is_built_in(&self) -> bool
[src]
Check if variable is built-in.
pub fn raw(&self) -> Dart<'el>
[src]
Convert into raw type. Raw types have no alias, nor generic arguments.
pub fn is_core(&self) -> bool
[src]
Check if this type belongs to a core package.
pub fn is_generic(&self) -> bool
[src]
Check if type is generic.
Trait Implementations
impl<'el> Clone for Dart<'el>
[src]
impl<'el> Custom for Dart<'el>
[src]
type Extra = Extra
Extra data associated with building a formatting element.
fn format(
&self,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
impl<'el> Debug for Dart<'el>
[src]
impl<'el> Eq for Dart<'el>
[src]
impl<'el> From<&'el Dart<'el>> for Tokens<'el, Dart<'el>>
[src]
impl<'el> From<Dart<'el>> for Tokens<'el, Dart<'el>>
[src]
impl<'el> Hash for Dart<'el>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'el> Ord for Dart<'el>
[src]
fn cmp(&self, other: &Dart<'el>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<'el> PartialEq<Dart<'el>> for Dart<'el>
[src]
impl<'el> PartialOrd<Dart<'el>> for Dart<'el>
[src]
fn partial_cmp(&self, other: &Dart<'el>) -> Option<Ordering>
[src]
fn lt(&self, other: &Dart<'el>) -> bool
[src]
fn le(&self, other: &Dart<'el>) -> bool
[src]
fn gt(&self, other: &Dart<'el>) -> bool
[src]
fn ge(&self, other: &Dart<'el>) -> bool
[src]
impl<'el> StructuralEq for Dart<'el>
[src]
impl<'el> StructuralPartialEq for Dart<'el>
[src]
Auto Trait Implementations
impl<'el> !RefUnwindSafe for Dart<'el>
impl<'el> !Send for Dart<'el>
impl<'el> !Sync for Dart<'el>
impl<'el> Unpin for Dart<'el>
impl<'el> UnwindSafe for Dart<'el>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,