Struct josephine::managed::JSManaged [] [src]

pub struct JSManaged<'a, C, T> { /* fields omitted */ }

The type of JS-managed data in a JS compartment C, with lifetime 'a and type T.

If the user has access to a JSManaged, then the JS-managed data is live for the given lifetime.

Methods

impl<'a, C, T> JSManaged<'a, C, T>
[src]

[src]

[src]

[src]

Read-only access to JS-managed data.

[src]

[src]

Read-write access to JS-managed data.

[src]

Change the compartment of JS-managed data.

[src]

Change the lifetime of JS-managed data.

[src]

It's safe to extend the lifetime of JS-managed data if it has been snapshotted.

[src]

Forget about which compartment the managed data is in. This is safe because when we mutate data in compartment C we require C: Compartment, which means it is never SOMEWHERE.

[src]

Check to see if the current object is in the same compartment as another.

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, C, D, T> JSCompartmental<C, D> for JSManaged<'a, C, T> where
    T: JSCompartmental<C, D>, 
[src]

[src]

impl<'a, C, T> Clone for JSManaged<'a, C, T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a, C, T> Copy for JSManaged<'a, C, T>
[src]

impl<'a, C, T> Debug for JSManaged<'a, C, T>
[src]

[src]

Formats the value using the given formatter.

impl<'a, C, T> PartialEq for JSManaged<'a, C, T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'a, C, T> Eq for JSManaged<'a, C, T>
[src]

impl<'a, C, T> JSTraceable for JSManaged<'a, C, T> where
    T: JSTraceable
[src]

[src]

[src]

[src]

impl<'a, 'b, C, T> JSLifetime<'a> for JSManaged<'b, C, T> where
    T: JSLifetime<'a>, 
[src]

[src]

[src]

[src]