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§
Sourceconst LOOP_HORIZONTAL: bool = false
const LOOP_HORIZONTAL: bool = false
Whether the graph loops in horizontal axis.
Sourceconst LOOP_VERTICAL: bool = false
const LOOP_VERTICAL: bool = false
Whether the graph loops in vertical axis.
Required Associated Types§
Required Methods§
Sourcefn get_sizeinfo(h: usize, v: usize) -> Self::SizeInfo
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.