pub enum KtClassKind {
Plain,
Abstract,
Data,
Enum(Vec<KtEnumEntry>),
ValueInline,
Object,
Companion,
Interface,
SealedInterface,
DataObject,
}Expand description
The kind of class-like declaration.
Variants§
Plain
Abstract
Data
Enum(Vec<KtEnumEntry>)
Enum class with its entries.
ValueInline
@JvmInline value class (the annotation is added by the renderer).
Object
Companion
companion object (only valid as KtClass::companion).
Interface
A plain interface — members with no body render as abstract
signatures; no ctor params.
SealedInterface
A sealed interface — an exhaustive set of alternatives whose
implementations are nested inside it as Self::Data classes and
Self::DataObjects.
DataObject
A data object — the singleton counterpart of a data class, for an
alternative that carries no payload.
Trait Implementations§
Source§impl Clone for KtClassKind
impl Clone for KtClassKind
Source§fn clone(&self) -> KtClassKind
fn clone(&self) -> KtClassKind
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 moreAuto Trait Implementations§
impl Freeze for KtClassKind
impl RefUnwindSafe for KtClassKind
impl Send for KtClassKind
impl Sync for KtClassKind
impl Unpin for KtClassKind
impl UnsafeUnpin for KtClassKind
impl UnwindSafe for KtClassKind
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