[−][src]Enum rusttyc::types::ReificationErr
Indicates that an abstract type could not be reified because it is too general or too restrictive.
Example
- A numeric type cannot be reified into any concrete value because the concrete counterpart could be a natural
number, integer, floating point number, .... ->
ReificationErr::TooGeneral
- An integer type cannot be reified into a concrete type with fixed memory layout except a default size is
defined, e.g. an Int will be reified into an Int32. ->
ReificationErr::TooGeneral
- An unbounded integer might not have a concrete counterpart because the system requires a concrete bit size.
->
ReificationErr::Conflicting
Note the subtle difference between ReificationErr::TooGeneral
and ReificationErr::Conflicting
:
+ In the Conflicting
case there is no concrete counterpart
+ In the TooGeneral
case the concrete counterpart is not defined or not unique but could exist.
Variants
TooGeneral(String)
Attempting to reify an abstract type with either no unique concrete counterpart or with no defined default reification value results in this error.
Conflicting(String)
Attempting to reify an abstract type for which no concrete counterpart does exist results in this error.
Trait Implementations
impl Clone for ReificationErr
[src]
fn clone(&self) -> ReificationErr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ReificationErr
[src]
Auto Trait Implementations
impl RefUnwindSafe for ReificationErr
impl Send for ReificationErr
impl Sync for ReificationErr
impl Unpin for ReificationErr
impl UnwindSafe for ReificationErr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,