pub struct KtSupertypes {
pub superclass: Option<KtSuperclass>,
pub interfaces: Vec<KtType>,
}Expand description
What a class extends and implements.
Kotlin lets a class construct at most one superclass and implement any
number of interfaces. Keeping those apart — rather than in one list where
any element may carry constructor arguments — makes class A : B(x), C(y)
unrepresentable.
Fields§
§superclass: Option<KtSuperclass>§interfaces: Vec<KtType>Implemented interfaces; never constructed.
Implementations§
Trait Implementations§
Source§impl Clone for KtSupertypes
impl Clone for KtSupertypes
Source§fn clone(&self) -> KtSupertypes
fn clone(&self) -> KtSupertypes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KtSupertypes
impl Debug for KtSupertypes
Source§impl Default for KtSupertypes
impl Default for KtSupertypes
Source§fn default() -> KtSupertypes
fn default() -> KtSupertypes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KtSupertypes
impl RefUnwindSafe for KtSupertypes
impl Send for KtSupertypes
impl Sync for KtSupertypes
impl Unpin for KtSupertypes
impl UnsafeUnpin for KtSupertypes
impl UnwindSafe for KtSupertypes
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