[−][src]Struct all_is_cubes::blockgen::BlockGen
Utilities for generating blocks that are compatible with each other.
Fields
universe: &'a mut Universe
The Universe
in which block spaces live.
size: GridCoordinate
The side length of block spaces.
Implementations
impl<'a> BlockGen<'a>
[src]
pub fn new(universe: &'a mut Universe, size: GridCoordinate) -> Self
[src]
pub fn new_block_space(&self) -> Space
[src]
Create a Space
of a suitable size for a block.
pub fn new_recursive_block(
&mut self,
attributes: BlockAttributes
) -> (Block, UBorrowMut<Space>)
[src]
&mut self,
attributes: BlockAttributes
) -> (Block, UBorrowMut<Space>)
Create a Block
referring to a Space
and return the Space
for modification.
pub fn block_from_function(
&mut self,
attributes: BlockAttributes,
f: impl Fn(&BlockGen<'_>, GridPoint, f32) -> Block
) -> Block
[src]
&mut self,
attributes: BlockAttributes,
f: impl Fn(&BlockGen<'_>, GridPoint, f32) -> Block
) -> Block
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BlockGen<'a>
impl<'a> !Send for BlockGen<'a>
impl<'a> !Sync for BlockGen<'a>
impl<'a> Unpin for BlockGen<'a>
impl<'a> !UnwindSafe for BlockGen<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,