Skip to main content

WeakUnion

Type Alias WeakUnion 

Source
pub type WeakUnion<'scope> = Weak<'scope, 'static, Union<'scope>>;
Expand description

A Union that has not been explicitly rooted.

Aliased Type§

pub struct WeakUnion<'scope>(/* private fields */);

Trait Implementations§

Source§

impl ValidLayout for WeakUnion<'_>

Source§

const IS_REF: bool = true

Must be true if the Rust type is a managed type.
Source§

fn valid_layout(ty: Value<'_, '_>) -> bool

Check if the layout of the implementor is compatible with the layout of ty. Read more
Source§

fn type_object<'target, Tgt>(_: &Tgt) -> Value<'target, 'static>
where Tgt: Target<'target>,

Returns the type object this layout is associated with.