Struct cairo_lang_sierra::extensions::types::TypeInfo
source · pub struct TypeInfo {
pub long_id: ConcreteTypeLongId,
pub storable: bool,
pub droppable: bool,
pub duplicatable: bool,
pub zero_sized: bool,
}
Expand description
Information on Sierra types required for generic libfunc calls.
Fields§
§long_id: ConcreteTypeLongId
The long ID of the concrete type.
storable: bool
Can the type be stored by any of the store commands.
droppable: bool
Can the type be (trivially) dropped.
duplicatable: bool
Can the type be (trivially) duplicated.
zero_sized: bool
Is the type zero sized.
Trait Implementations§
source§impl PartialEq for TypeInfo
impl PartialEq for TypeInfo
impl Eq for TypeInfo
impl StructuralEq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
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.