pub enum Conclusion {
Value(TypeInner),
Predeclared(PredeclaredType),
}
Expand description
The result type of a Rule
.
A Conclusion
value represents the return type of some operation
in the builtin function database.
This is very similar to TypeInner
, except that it represents
predeclared types using PredeclaredType
, so that overload
resolution can delegate registering predeclared types to its users.
Variants§
Value(TypeInner)
A type that can be entirely characterized by a TypeInner
value.
Predeclared(PredeclaredType)
A type that should be registered in the module’s
SpecialTypes::predeclared_types
table.
Implementations§
Source§impl Conclusion
impl Conclusion
pub fn for_frexp_modf( function: MathFunction, size: ConstructorSize, scalar: Scalar, ) -> Self
pub fn into_resolution( self, special_types: &SpecialTypes, ) -> Result<TypeResolution, MissingSpecialType>
Trait Implementations§
Source§impl Clone for Conclusion
impl Clone for Conclusion
Source§fn clone(&self) -> Conclusion
fn clone(&self) -> Conclusion
Returns a copy of the value. Read more
1.0.0 · 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 Conclusion
impl Debug for Conclusion
Source§impl ForDebugWithTypes for &Conclusion
impl ForDebugWithTypes for &Conclusion
Source§fn for_debug(
self,
types: &UniqueArena<Type>,
) -> DiagnosticDebug<(Self, &UniqueArena<Type>)>
fn for_debug( self, types: &UniqueArena<Type>, ) -> DiagnosticDebug<(Self, &UniqueArena<Type>)>
Format this type using
core::fmt::Debug
. Read moreAuto Trait Implementations§
impl Freeze for Conclusion
impl RefUnwindSafe for Conclusion
impl Send for Conclusion
impl Sync for Conclusion
impl Unpin for Conclusion
impl UnwindSafe for Conclusion
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