Wrapped

Trait Wrapped 

Source
pub unsafe trait Wrapped<Tag>:
    Send
    + Sync
    + Sized {
    type Unwrapped;

    // Required methods
    unsafe fn unwrap(self) -> Self::Unwrapped;
    unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self;
    unsafe fn for_each_representative<F>(&self, f: F)
       where F: FnMut(usize);
}
๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Expand description

Wrap all of the levels of a tuple into Compatible types.

ยงSafety

Can only be implemented on a container of Object<Ty, Tag> types. Unwrapped must be a container of the corresponding Ty.

Required Associated Typesยง

Source

type Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate

Required Methodsยง

Source

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate

Unwrap this object into the inner objects.

ยงSafety

This is unsafe because it assumes that the caller is on the correct thread.

Source

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate

Wrap the inner objects into this object.

ยงSafety

This is unsafe because it assumes that the caller is on the correct thread.

Source

unsafe fn for_each_representative<F>(&self, f: F)
where F: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate

Run a closure for each value in this set, using the representative value.

ยงSafety

This is unsafe because it assumes that the caller is on the correct thread.

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<'lt, T: Compatible, Tag> Wrapped<Tag> for &'lt [Object<T, Tag>]

Sourceยง

type Unwrapped = &'lt [T]

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<F>(&self, f: F)
where F: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag> Wrapped<Tag> for ()

Sourceยง

type Unwrapped = ()

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(_unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<F>(&self, _f: F)
where F: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, A: Wrapped<Tag>, B: Wrapped<Tag>, C: Wrapped<Tag>, D: Wrapped<Tag>, E: Wrapped<Tag>, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (A, B, C, D, E, F, G, H, I, J)

Sourceยง

type Unwrapped = (<A as Wrapped<Tag>>::Unwrapped, <B as Wrapped<Tag>>::Unwrapped, <C as Wrapped<Tag>>::Unwrapped, <D as Wrapped<Tag>>::Unwrapped, <E as Wrapped<Tag>>::Unwrapped, <F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, B: Wrapped<Tag>, C: Wrapped<Tag>, D: Wrapped<Tag>, E: Wrapped<Tag>, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (B, C, D, E, F, G, H, I, J)

Sourceยง

type Unwrapped = (<B as Wrapped<Tag>>::Unwrapped, <C as Wrapped<Tag>>::Unwrapped, <D as Wrapped<Tag>>::Unwrapped, <E as Wrapped<Tag>>::Unwrapped, <F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, C: Wrapped<Tag>, D: Wrapped<Tag>, E: Wrapped<Tag>, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (C, D, E, F, G, H, I, J)

Sourceยง

type Unwrapped = (<C as Wrapped<Tag>>::Unwrapped, <D as Wrapped<Tag>>::Unwrapped, <E as Wrapped<Tag>>::Unwrapped, <F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, D: Wrapped<Tag>, E: Wrapped<Tag>, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (D, E, F, G, H, I, J)

Sourceยง

type Unwrapped = (<D as Wrapped<Tag>>::Unwrapped, <E as Wrapped<Tag>>::Unwrapped, <F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, E: Wrapped<Tag>, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (E, F, G, H, I, J)

Sourceยง

type Unwrapped = (<E as Wrapped<Tag>>::Unwrapped, <F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, F: Wrapped<Tag>, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (F, G, H, I, J)

Sourceยง

type Unwrapped = (<F as Wrapped<Tag>>::Unwrapped, <G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, G: Wrapped<Tag>, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (G, H, I, J)

Sourceยง

type Unwrapped = (<G as Wrapped<Tag>>::Unwrapped, <H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, H: Wrapped<Tag>, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (H, I, J)

Sourceยง

type Unwrapped = (<H as Wrapped<Tag>>::Unwrapped, <I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, I: Wrapped<Tag>, J: Wrapped<Tag>> Wrapped<Tag> for (I, J)

Sourceยง

type Unwrapped = (<I as Wrapped<Tag>>::Unwrapped, <J as Wrapped<Tag>>::Unwrapped)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

impl<Tag, J: Wrapped<Tag>> Wrapped<Tag> for (J,)

Sourceยง

type Unwrapped = (<J as Wrapped<Tag>>::Unwrapped,)

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn unwrap(self) -> Self::Unwrapped

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn wrap(unwrapped: Self::Unwrapped) -> Self

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate
Sourceยง

unsafe fn for_each_representative<Func>(&self, f: Func)
where Func: FnMut(usize),

๐Ÿ‘ŽDeprecated: It is probably a bad idea to use this crate

Implementorsยง

Sourceยง

impl<T: Compatible, Tag> Wrapped<Tag> for Object<T, Tag>