Enum panopticon_core::layer::Layer [] [src]

pub enum Layer {
    Opaque(OpaqueLayer),
    Sparse(HashMap<u64, Cell>),
}

Layer transform ranges of Cells

Layer overlaps a continuous range of Cells and returns a new range of Cells of equal size. Layers can overlap other Layers or Regions.

Variants

Layer consisting of fixed byte values.

Layer overwriting single cells with new values.

Methods

impl Layer
[src]

[src]

Reads Cells from i and transforms them. Returns a iterator to the transformed Cells.

[src]

Create a new Layer that replaces overlapped Cells with the contents of data. The Layer will have the size of the vector.

[src]

Create a new Layer of size len that replaces overlapped Cells undefined ones.

[src]

Create a new Layer that replaces overlapped Cells with the contents of the file at path. The Layer will have the size of the file.

[src]

Returns a new Layer that allows sparse replacement of Cells

[src]

Sets Cell at p to c. Returns true if this is a writable Layer and the operation succeeded, false otherwise.

[src]

Returns true if all Cells of the Layer are undefined

[src]

Returns true if the Layer is writable

[src]

Converts the Layer into OpaqueLayer, returns None on error.

Trait Implementations

impl Clone for Layer
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Layer
[src]

[src]

Formats the value using the given formatter. Read more