Enum kotlin_poet_rs::spec::GenericInvariance
source · pub enum GenericInvariance {
In,
Out,
}
Expand description
Type of generic parameter invariance.
Conventionally possibly non-invariant generics are expressed via Option<GenericInvariance>
Variants§
Trait Implementations§
source§impl Clone for GenericInvariance
impl Clone for GenericInvariance
source§fn clone(&self) -> GenericInvariance
fn clone(&self) -> GenericInvariance
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 GenericInvariance
impl Debug for GenericInvariance
source§impl RenderKotlin for GenericInvariance
impl RenderKotlin for GenericInvariance
source§fn render_string(&self) -> String
fn render_string(&self) -> String
Shortcut method for converting RenderKotlin::render_into output into String.
Auto Trait Implementations§
impl Freeze for GenericInvariance
impl RefUnwindSafe for GenericInvariance
impl Send for GenericInvariance
impl Sync for GenericInvariance
impl Unpin for GenericInvariance
impl UnwindSafe for GenericInvariance
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)