extendr_api::prelude::reborrow

Trait AsGeneralizedMut

pub trait AsGeneralizedMut<'short, Target, _Outlives = &'short Self> {
    // Required method
    fn as_generalized_mut(&'short mut self) -> Target;
}
Expand description

This trait is similar to [std::convert::AsMut], but works with generalized reference types, instead of being limited to native Rust references.

Required Methods§

fn as_generalized_mut(&'short mut self) -> Target

Implementations on Foreign Types§

§

impl<'short, T, Target> AsGeneralizedMut<'short, Option<Target>> for Option<T>
where T: AsGeneralizedMut<'short, Target>,

§

fn as_generalized_mut(&'short mut self) -> Option<Target>

Implementors§

§

impl<'short, T, Target> AsGeneralizedMut<'short, &'short mut Target> for T
where T: AsMut<Target> + ?Sized, Target: ?Sized,