[−][src]Enum oakc::hir::HirError
Variants
MemorySizeTooSmall(i32)
There are some programs that can't possibly run on a minimum amount of memory. To reduce the incidence of this happening, we check against a minimum memory size.
ConstantNotDefined(Identifier)
If a constant is used without it being defined, then throw this error.
If BOTH the std
and no_std
flags are used
in a program, then there are conflicting requirements
for including the standard library. Throw this error
if that is the case.
FailedAssertion(HirConstant)
If a compile time assertion fails, throw an error
UserError(String)
This is a user defined error using the error
flag
TypeNotDefined(String)
This returns an error if a type is not defined. This was
specifically implemented for defining the sizeof
operator.
CastLiteralAsPointer(HirType)
This occurs when a literal expression is cast as a pointer. This isn't ACTUALLY bad, but it's intended to promote type correctness.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HirError
impl Send for HirError
impl Sync for HirError
impl Unpin for HirError
impl UnwindSafe for HirError
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> Colorize for T where
T: Display,
[src]
T: Display,
fn black(self) -> String
[src]
fn red(self) -> String
[src]
fn green(self) -> String
[src]
fn yellow(self) -> String
[src]
fn blue(self) -> String
[src]
fn magenta(self) -> String
[src]
fn cyan(self) -> String
[src]
fn white(self) -> String
[src]
fn bright_black(self) -> String
[src]
fn bright_red(self) -> String
[src]
fn bright_green(self) -> String
[src]
fn bright_yellow(self) -> String
[src]
fn bright_blue(self) -> String
[src]
fn bright_magenta(self) -> String
[src]
fn bright_cyan(self) -> String
[src]
fn bright_white(self) -> String
[src]
fn bold(self) -> String
[src]
fn underline(self) -> String
[src]
fn invert(self) -> String
[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> Same<T> for T
type Output = T
Should always be Self
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,