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 duplicate 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