fidl_next

Trait TakeFrom

Source
pub trait TakeFrom<T: ?Sized> {
    // Required method
    fn take_from(from: &mut T) -> Self;
}
Expand description

From conversions which take from a mutable reference.

Required Methods§

Source

fn take_from(from: &mut T) -> Self

Converts from the given T, taking any resources that can’t be cloned.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TakeFrom<bool> for bool

Source§

fn take_from(from: &mut bool) -> bool

Source§

impl TakeFrom<i8> for i8

Source§

fn take_from(from: &mut i8) -> i8

Source§

impl TakeFrom<u8> for u8

Source§

fn take_from(from: &mut u8) -> u8

Source§

impl TakeFrom<WireChannel> for Channel

Source§

fn take_from(from: &mut WireChannel) -> Self

Source§

impl TakeFrom<WireOptionalChannel> for Option<Channel>

Source§

fn take_from(from: &mut WireOptionalChannel) -> Self

Source§

impl TakeFrom<WireOptionalHandle> for Option<Handle>

Source§

fn take_from(from: &mut WireOptionalHandle) -> Self

Source§

impl TakeFrom<WireOptionalString<'_>> for Option<String>

Source§

fn take_from(from: &mut WireOptionalString<'_>) -> Self

Source§

impl TakeFrom<WireString<'_>> for String

Source§

fn take_from(from: &mut WireString<'_>) -> Self

Source§

impl TakeFrom<f32_le> for f32

Source§

fn take_from(from: &mut f32_le) -> f32

Source§

impl TakeFrom<f64_le> for f64

Source§

fn take_from(from: &mut f64_le) -> f64

Source§

impl TakeFrom<i16_le> for i16

Source§

fn take_from(from: &mut i16_le) -> i16

Source§

impl TakeFrom<i32_le> for i32

Source§

fn take_from(from: &mut i32_le) -> i32

Source§

impl TakeFrom<i64_le> for i64

Source§

fn take_from(from: &mut i64_le) -> i64

Source§

impl TakeFrom<u16_le> for u16

Source§

fn take_from(from: &mut u16_le) -> u16

Source§

impl TakeFrom<u32_le> for u32

Source§

fn take_from(from: &mut u32_le) -> u32

Source§

impl TakeFrom<u64_le> for u64

Source§

fn take_from(from: &mut u64_le) -> u64

Source§

impl TakeFrom<WireHandle> for Handle

Source§

fn take_from(from: &mut WireHandle) -> Self

Source§

impl<T: TakeFrom<WT>, WT> TakeFrom<WireBox<'_, WT>> for Option<T>

Source§

fn take_from(from: &mut WireBox<'_, WT>) -> Self

Source§

impl<T: TakeFrom<WT>, WT> TakeFrom<WireOptionalVector<'_, WT>> for Option<Vec<T>>

Source§

fn take_from(from: &mut WireOptionalVector<'_, WT>) -> Self

Source§

impl<T: TakeFrom<WT>, WT> TakeFrom<WireVector<'_, WT>> for Vec<T>

Source§

fn take_from(from: &mut WireVector<'_, WT>) -> Self

Source§

impl<T: TakeFrom<WT>, WT> TakeFrom<WT> for Box<T>

Source§

fn take_from(from: &mut WT) -> Self

Source§

impl<T: TakeFrom<WT>, WT, const N: usize> TakeFrom<[WT; N]> for [T; N]

Source§

fn take_from(from: &mut [WT; N]) -> Self

Implementors§