Struct bit_matrix::submatrix::BitSubMatrixMut[][src]

pub struct BitSubMatrixMut<'a> { /* fields omitted */ }
Expand description

Mutable access to a range of matrix’s rows.

Implementations

Returns a new BitSubMatrixMut.

Forms a BitSubMatrix from a pointer and dimensions.

Sets the value of a bit.

Panics

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

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.

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

Uses the Warshall’s algorithm.

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

Iterates over the matrix’s rows in the form of mutable slices.

Trait Implementations

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

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

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

Performs the mutable indexing (container[index]) operation. 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 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.