pub struct ClassExtends {
pub parent: MangledName,
pub args: Vec<Type>,
}Expand description
A class’s resolved extends clause. Parent and type args are one fact:
every chain walker that hops to the parent must zip args against the
parent’s generics, so they travel together.
Fields§
§parent: MangledName§args: Vec<Type>Type args applied to the parent’s generics; may mention the child’s own generics. Empty for a non-generic parent.
Implementations§
Source§impl ClassExtends
impl ClassExtends
Sourcepub fn plain(parent: MangledName) -> Self
pub fn plain(parent: MangledName) -> Self
Extends a non-generic parent.
Trait Implementations§
Source§impl Clone for ClassExtends
impl Clone for ClassExtends
Source§impl Debug for ClassExtends
impl Debug for ClassExtends
Source§impl<'de> Deserialize<'de> for ClassExtends
impl<'de> Deserialize<'de> for ClassExtends
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassExtends
impl PartialEq for ClassExtends
Source§impl Serialize for ClassExtends
impl Serialize for ClassExtends
impl StructuralPartialEq for ClassExtends
Auto Trait Implementations§
impl Freeze for ClassExtends
impl RefUnwindSafe for ClassExtends
impl Send for ClassExtends
impl Sync for ClassExtends
impl Unpin for ClassExtends
impl UnsafeUnpin for ClassExtends
impl UnwindSafe for ClassExtends
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