pub trait BuildUniformNestedCoord: AsRangedCoordwhere
Self::CoordDescType: DiscreteRanged,{
// Provided methods
fn uniform_nested_coord_with<Secondary: AsRangedCoord>(
self,
make_secondary: impl FnOnce() -> Secondary,
) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType> { ... }
fn uniform_nested_coord<Secondary: AsRangedCoord>(
self,
secondary: Secondary,
) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType> { ... }
}
Expand description
Used to build a uniform-nested coordinate system (UniformNestedRange
)
Provided Methods§
Sourcefn uniform_nested_coord_with<Secondary: AsRangedCoord>(
self,
make_secondary: impl FnOnce() -> Secondary,
) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType>
fn uniform_nested_coord_with<Secondary: AsRangedCoord>( self, make_secondary: impl FnOnce() -> Secondary, ) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType>
Builds a uniform nested coordinate system.
Provide a function to generate the single coordinate system you want to nest uniformly inside this outer coordinate system.
Will panic if this coordinate system has a DiscreteRanged::size
of zero.
Sourcefn uniform_nested_coord<Secondary: AsRangedCoord>(
self,
secondary: Secondary,
) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType>
fn uniform_nested_coord<Secondary: AsRangedCoord>( self, secondary: Secondary, ) -> UniformNestedRange<Self::CoordDescType, Secondary::CoordDescType>
Builds a uniform nested coordinate system that has been directly provided without an intermediary function call.
Will panic if this coordinate system has a DiscreteRanged::size
of zero
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.