Struct BiomeSearchResult
#[non_exhaustive]pub struct BiomeSearchResult {
pub biome: String,
pub position: [i32; 3],
}Expand description
The first matching sample in vanilla’s closest-biome search order.
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.biome: StringRegistry id of the matching biome.
position: [i32; 3]Block coordinates of the matching sample.
Implementations§
§impl BiomeSearchResult
impl BiomeSearchResult
pub fn new(biome: String, position: [i32; 3]) -> BiomeSearchResult
pub fn new(biome: String, position: [i32; 3]) -> BiomeSearchResult
Pair a matching biome with its sampled position.
Trait Implementations§
§impl Clone for BiomeSearchResult
impl Clone for BiomeSearchResult
§fn clone(&self) -> BiomeSearchResult
fn clone(&self) -> BiomeSearchResult
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 BiomeSearchResult
impl Debug for BiomeSearchResult
impl Eq for BiomeSearchResult
§impl PartialEq for BiomeSearchResult
impl PartialEq for BiomeSearchResult
impl StructuralPartialEq for BiomeSearchResult
Auto Trait Implementations§
impl Freeze for BiomeSearchResult
impl RefUnwindSafe for BiomeSearchResult
impl Send for BiomeSearchResult
impl Sync for BiomeSearchResult
impl Unpin for BiomeSearchResult
impl UnsafeUnpin for BiomeSearchResult
impl UnwindSafe for BiomeSearchResult
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