pub struct DiffMask { /* private fields */ }
Expand description

The DiffMask is a variable-length byte array, where each bit represents the current state of a Property owned by a Replica. The Property tracks whether it has been updated and needs to be synced with the remote Client

Implementations

Create a new DiffMask with a given number of bytes

Gets the bit at the specified position within the DiffMask

Sets the bit at the specified position within the DiffMask

Clears the whole DiffMask

Returns whether any bit has been set in the DiffMask

Get the number of bytes required to represent the DiffMask

Gets a byte at the specified index in the DiffMask

Performs a NAND operation on the DiffMask, with another DiffMask

Performs an OR operation on the DiffMask, with another DiffMask

Writes the DiffMask into an outgoing byte stream

Reads the DiffMask from an incoming packet

Copies the DiffMask into another DiffMask

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

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.