Struct erg_compiler::ty::value::TraitTypeObj
source · pub struct TraitTypeObj {
pub t: Type,
pub requires: Box<TypeObj>,
pub impls: Option<Box<TypeObj>>,
pub inited: bool,
}
Fields§
§t: Type
§requires: Box<TypeObj>
§impls: Option<Box<TypeObj>>
§inited: bool
Implementations§
Trait Implementations§
source§impl Clone for TraitTypeObj
impl Clone for TraitTypeObj
source§fn clone(&self) -> TraitTypeObj
fn clone(&self) -> TraitTypeObj
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 TraitTypeObj
impl Debug for TraitTypeObj
source§impl Hash for TraitTypeObj
impl Hash for TraitTypeObj
source§impl PartialEq for TraitTypeObj
impl PartialEq for TraitTypeObj
source§fn eq(&self, other: &TraitTypeObj) -> bool
fn eq(&self, other: &TraitTypeObj) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TraitTypeObj
impl StructuralEq for TraitTypeObj
impl StructuralPartialEq for TraitTypeObj
Auto Trait Implementations§
impl RefUnwindSafe for TraitTypeObj
impl Send for TraitTypeObj
impl Sync for TraitTypeObj
impl Unpin for TraitTypeObj
impl UnwindSafe for TraitTypeObj
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