Trait oxc_allocator::FromIn

source ·
pub trait FromIn<'a, T>: Sized {
    // Required method
    fn from_in(value: T, allocator: &'a Allocator) -> Self;
}
Expand description

This trait works similarly to the standard library From trait, It comes with a similar implementation containing blanket implementation for IntoIn, reflective implementation and a bunch of primitive conversions from Rust types to their arena equivalent.

Required Methods§

source

fn from_in(value: T, allocator: &'a Allocator) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> FromIn<'a, String> for &'a str

source§

fn from_in(value: String, allocator: &'a Allocator) -> Self

source§

impl<'a, T> FromIn<'a, Option<T>> for Option<Box<'a, T>>

source§

fn from_in(value: Option<T>, allocator: &'a Allocator) -> Self

Implementors§

source§

impl<'a> FromIn<'a, String> for String<'a>

source§

impl<'a, T> FromIn<'a, T> for Box<'a, T>

source§

impl<'a, T> FromIn<'a, T> for T

FromIn is reflective