pub struct PermTable {
pub perm: [u8; 512],
}Expand description
A permutation table for noise functions. Built from a seed at init time, immutable thereafter. The table is doubled (512 entries) to avoid modular indexing.
Fields§
§perm: [u8; 512]The doubled table: 256 entries repeated, so an index needs no modulus.
Implementations§
Trait Implementations§
impl PolydatSetup for PermTable
Auto Trait Implementations§
impl Freeze for PermTable
impl RefUnwindSafe for PermTable
impl Send for PermTable
impl Sync for PermTable
impl Unpin for PermTable
impl UnsafeUnpin for PermTable
impl UnwindSafe for PermTable
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