#[repr(C)]pub struct Region<T> {
pub range: RegionRange,
pub channels: ChannelFlags,
pub flags: RegionFlags,
/* private fields */
}
Expand description
Stores data about the loaded state of a provided region of voxels.
Fields§
§range: RegionRange
The range of loaded voxels.
channels: ChannelFlags
The channels that have been loaded.
flags: RegionFlags
The flags of the region.
Implementations§
Source§impl<T> Region<T>
impl<T> Region<T>
Sourcepub fn new(
range: RegionRange,
channels: ChannelFlags,
flags: RegionFlags,
data: T,
) -> Self
pub fn new( range: RegionRange, channels: ChannelFlags, flags: RegionFlags, data: T, ) -> Self
Creates a new region for the provided range, channels, flags, and user data.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Region<T>
impl<T> RefUnwindSafe for Region<T>where
T: RefUnwindSafe,
impl<T> Send for Region<T>where
T: Send,
impl<T> Sync for Region<T>where
T: Sync,
impl<T> Unpin for Region<T>
impl<T> UnwindSafe for Region<T>where
T: UnwindSafe,
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