Skip to main content

is_detached

Function is_detached 

Source
pub fn is_detached(ab: &Value) -> bool
Expand description

Whether ab has been DETACHED — its bytes handed to another buffer by transfer, or given away by structuredClone’s transfer option.

A detached buffer is not an empty one: reading a view over it answers undefined and its length is 0, but every METHOD on that view throws.