tinymist_std

Trait TakeAs

Source
pub trait TakeAs<T> {
    // Required method
    fn take(self) -> T;
}
Expand description

Trait for values being taken.

Required Methods§

Source

fn take(self) -> T

Takes the inner value if there is exactly one strong reference and clones it otherwise.

Implementations on Foreign Types§

Source§

impl<T: Clone> TakeAs<T> for Arc<T>

Source§

fn take(self) -> T

Implementors§