pub struct Substitution {
pub any_element: Option<DataType>,
pub any_array: Option<DataType>,
pub any_nonarray: Option<DataType>,
pub any_compatible: Option<DataType>,
}Expand description
The resolver’s output — a substitution map that every
pseudo-type in a signature has been bound to. Used by
expr_typing to compute the concrete return type from a
signature that mentions the same pseudo-type in its return
position.
Fields§
§any_element: Option<DataType>Resolved type for AnyElement positions.
any_array: Option<DataType>Resolved type for AnyArray positions.
any_nonarray: Option<DataType>Resolved type for AnyNonArray positions.
any_compatible: Option<DataType>Resolved type for AnyCompatible positions.
Implementations§
Trait Implementations§
Source§impl Clone for Substitution
impl Clone for Substitution
Source§fn clone(&self) -> Substitution
fn clone(&self) -> Substitution
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 Substitution
impl Debug for Substitution
Source§impl Default for Substitution
impl Default for Substitution
Source§fn default() -> Substitution
fn default() -> Substitution
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Substitution
impl RefUnwindSafe for Substitution
impl Send for Substitution
impl Sync for Substitution
impl Unpin for Substitution
impl UnsafeUnpin for Substitution
impl UnwindSafe for Substitution
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