Enum cairo_lang_semantic::corelib::LiteralError
source · pub enum LiteralError {
InvalidTypeForLiteral(TypeId),
OutOfRange(TypeId),
}
Variants§
Implementations§
source§impl LiteralError
impl LiteralError
pub fn format(&self, db: &dyn SemanticGroup) -> String
Trait Implementations§
source§impl Clone for LiteralError
impl Clone for LiteralError
source§fn clone(&self) -> LiteralError
fn clone(&self) -> LiteralError
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 LiteralError
impl Debug for LiteralError
source§impl Hash for LiteralError
impl Hash for LiteralError
source§impl PartialEq<LiteralError> for LiteralError
impl PartialEq<LiteralError> for LiteralError
source§fn eq(&self, other: &LiteralError) -> bool
fn eq(&self, other: &LiteralError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LiteralError
impl StructuralEq for LiteralError
impl StructuralPartialEq for LiteralError
Auto Trait Implementations§
impl RefUnwindSafe for LiteralError
impl Send for LiteralError
impl Sync for LiteralError
impl Unpin for LiteralError
impl UnwindSafe for LiteralError
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.