pub struct RustType {
pub text: String,
pub unresolved: Vec<String>,
}Expand description
A Rust type as normalised text (9.5.2, step 1): the tokens of the type as the
declaration writes it, spaced canonically, with every path the scanner resolved made
absolute (::ferroui_base::Ref<::ferroui_controls::control::Control>). A path of the
scanned crate names the module that declares the item; a path into another crate is
absolute as the use item of the file spells it. Names of the language prelude and
the primitive types stay as they are (Option, String, f64).
Fields§
§text: StringThe normalised text.
unresolved: Vec<String>The paths of the text the scanner could not resolve, as written, each once, in the order of the text. They are kept in the text as written.
Implementations§
Trait Implementations§
impl Eq for RustType
Source§impl Ord for RustType
impl Ord for RustType
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RustType
impl PartialOrd for RustType
impl StructuralPartialEq for RustType
Auto Trait Implementations§
impl Freeze for RustType
impl RefUnwindSafe for RustType
impl Send for RustType
impl Sync for RustType
impl Unpin for RustType
impl UnsafeUnpin for RustType
impl UnwindSafe for RustType
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more