pub struct TypeEntry {
pub name: &'static str,
pub doc: &'static str,
pub seeded: bool,
}Expand description
One built-in type name and a one-line description.
Fields§
§name: &'static str§doc: &'static str§seeded: boolWhether name resolution binds this name in the root scope.
The scalars and Never are bound, which is how var n: Nope becomes an
N002 from a failed lookup. A type constructor is not: Range, and
the collection names in PRELUDE, are compiler-owned type names that
annotation checking accepts without a lookup and inference turns into
types. The distinction is not cosmetic — a bound name is also a value
name, and Range has no value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeEntry
impl RefUnwindSafe for TypeEntry
impl Send for TypeEntry
impl Sync for TypeEntry
impl Unpin for TypeEntry
impl UnsafeUnpin for TypeEntry
impl UnwindSafe for TypeEntry
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