Trait Shape

Source
pub trait Shape: Copy {
    type SizeInfo: SizeInfo;

    const LOOP_HORIZONTAL: bool = false;
    const LOOP_VERTICAL: bool = false;

    // Required method
    fn get_sizeinfo(h: usize, v: usize) -> Self::SizeInfo;
}
Expand description

Shape of the SquareGraph. It tells that the graph loops or not.

Provided Associated Constants§

Source

const LOOP_HORIZONTAL: bool = false

Whether the graph loops in horizontal axis.

Source

const LOOP_VERTICAL: bool = false

Whether the graph loops in vertical axis.

Required Associated Types§

Source

type SizeInfo: SizeInfo

SizeInfo is needed if loop is enabled.

Required Methods§

Source

fn get_sizeinfo(h: usize, v: usize) -> Self::SizeInfo

Get a size info used in EdgeReference.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§