pub struct ResolvedType {
pub name: String,
pub base: Option<BaseType>,
pub constraint: Option<Constraint>,
}Expand description
A resolved type reference: the written name, its base type (if resolvable), and any closed-domain constraint (from a semantic type definition).
Fields§
§name: StringThe type name as written (a base keyword or a semantic-type name).
base: Option<BaseType>The underlying base type, if resolvable.
constraint: Option<Constraint>A closed-domain constraint, for literal-argument validation.
Trait Implementations§
Source§impl Clone for ResolvedType
impl Clone for ResolvedType
Source§fn clone(&self) -> ResolvedType
fn clone(&self) -> ResolvedType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedType
impl Debug for ResolvedType
impl Eq for ResolvedType
Source§impl PartialEq for ResolvedType
impl PartialEq for ResolvedType
Source§fn eq(&self, other: &ResolvedType) -> bool
fn eq(&self, other: &ResolvedType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedType
Auto Trait Implementations§
impl Freeze for ResolvedType
impl RefUnwindSafe for ResolvedType
impl Send for ResolvedType
impl Sync for ResolvedType
impl Unpin for ResolvedType
impl UnsafeUnpin for ResolvedType
impl UnwindSafe for ResolvedType
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