Struct debris_llir::objects::obj_tuple_object::Tuple
source · pub struct Tuple {
pub layout: Vec<ClassRef>,
}
Fields§
§layout: Vec<ClassRef>
Implementations§
source§impl Tuple
impl Tuple
sourcepub fn matches(&self, other: &Tuple) -> bool
pub fn matches(&self, other: &Tuple) -> bool
Returns whether the other tuple matches this tuple, where this tuple is a pattern
sourcepub fn diverges(&self) -> bool
pub fn diverges(&self) -> bool
Returns whether this tuple diverges. This tuple diverges if any of its values diverges.
sourcepub fn runtime_encodable(&self) -> bool
pub fn runtime_encodable(&self) -> bool
Returns whether every type contained in this tuple can be encoded at runtime.
sourcepub fn comptime_encodable(&self) -> bool
pub fn comptime_encodable(&self) -> bool
Returns true if any of the contained fields of this tuple should be const
Trait Implementations§
source§impl PartialEq for Tuple
impl PartialEq for Tuple
impl Eq for Tuple
impl StructuralEq for Tuple
impl StructuralPartialEq for Tuple
Auto Trait Implementations§
impl !RefUnwindSafe for Tuple
impl !Send for Tuple
impl !Sync for Tuple
impl Unpin for Tuple
impl !UnwindSafe for Tuple
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
§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.