pub struct External<T: 'static> {
    pub adjusted_size: i64,
    /* private fields */
}

Fields

adjusted_size: i64

Implementations

size_hint is a value to tell Node.js GC how much memory is used by this External object.

If getting the exact size_hint is difficult, you can provide an approximate value, it’s only effect to the GC.

If your External object is not effect to GC, you can use External::new instead.

Trait Implementations

Converts this type into a mutable reference of the (usually inferred) input type.

Converts this type into a shared reference of the (usually inferred) input type.

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Safety Read more

Safety Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.