Struct NoiseColumn
#[non_exhaustive]pub struct NoiseColumn {
pub min: i32,
pub blocks: Vec<NoiseBlock>,
}Expand description
A noise column from its minimum Y upward; reads outside it are air.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min: i32The minimum Y represented by the first block.
blocks: Vec<NoiseBlock>Classified blocks in increasing Y order.
Implementations§
§impl NoiseColumn
impl NoiseColumn
pub fn new(min: i32, blocks: Vec<NoiseBlock>) -> NoiseColumn
pub fn new(min: i32, blocks: Vec<NoiseBlock>) -> NoiseColumn
Construct a column from its minimum Y and classified blocks.
pub fn get(&self, y: i32) -> NoiseBlock
pub fn get(&self, y: i32) -> NoiseBlock
Read a class, returning air outside the represented range.
Trait Implementations§
§impl Clone for NoiseColumn
impl Clone for NoiseColumn
§fn clone(&self) -> NoiseColumn
fn clone(&self) -> NoiseColumn
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for NoiseColumn
impl Debug for NoiseColumn
§impl Default for NoiseColumn
impl Default for NoiseColumn
§fn default() -> NoiseColumn
fn default() -> NoiseColumn
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoiseColumn
impl RefUnwindSafe for NoiseColumn
impl Send for NoiseColumn
impl Sync for NoiseColumn
impl Unpin for NoiseColumn
impl UnsafeUnpin for NoiseColumn
impl UnwindSafe for NoiseColumn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more