Struct bit_matrix::matrix::BitMatrix [] [src]

pub struct BitMatrix { /* fields omitted */ }

A matrix of bits.

Methods

impl BitMatrix
[src]

Create a new BitMatrix with specific numbers of bits in columns and rows.

Returns the matrix's size as (rows, columns).

Sets the value of a bit.

Panics

Panics if (row, col) is out of bounds.

Grows the matrix in-place, adding num_rows rows filled with value.

Returns a slice of the matrix's rows.

Given a row's index, returns a slice of all rows above that row, a reference to said row, and a slice of all rows below.

Functionally equivalent to (self.sub_matrix(0..row), &self[row], self.sub_matrix(row..self.num_rows())).

Given a row's index, returns a slice of all rows above that row, a reference to said row, and a slice of all rows below.

Iterate over bits in the specified row.

Computes the transitive closure of the binary relation represented by the matrix.

Uses the Warshall's algorithm.

Trait Implementations

impl Clone for BitMatrix
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BitMatrix
[src]

Formats the value using the given formatter.

impl PartialEq for BitMatrix
[src]

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

This method tests for !=.

impl Eq for BitMatrix
[src]

impl PartialOrd for BitMatrix
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for BitMatrix
[src]

This method returns an Ordering between self and other. Read more

impl Hash for BitMatrix
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Index<usize> for BitMatrix
[src]

Returns the matrix's row in the form of an immutable slice.

The returned type after indexing

The method for the indexing (container[index]) operation

impl IndexMut<usize> for BitMatrix
[src]

Returns the matrix's row in the form of a mutable slice.

The method for the mutable indexing (container[index]) operation

impl Index<(usize, usize)> for BitMatrix
[src]

Returns true if a bit is enabled in the matrix, or false otherwise.

The returned type after indexing

The method for the indexing (container[index]) operation