[−][src]Struct gobs::raw_volume::RawVolume
Fields
data: Vec<T>
border_value: T
valid_region: Region
Implementations
impl<T> RawVolume<T> where
T: Voxel,
[src]
T: Voxel,
pub fn new(region: Region) -> Self
[src]
pub fn get_data(&self) -> &Vec<T>
[src]
pub fn set_border_value(&mut self, value: T)
[src]
Trait Implementations
impl<T> Volume<T> for RawVolume<T> where
T: Voxel,
[src]
T: Voxel,
pub fn get_region(&self) -> &Region
[src]
pub fn get_voxel_at(&self, x: i32, y: i32, z: i32) -> T
[src]
pub fn set_voxel_at(
&mut self,
x: i32,
y: i32,
z: i32,
voxel: T
) -> Result<(), PositionError>
[src]
&mut self,
x: i32,
y: i32,
z: i32,
voxel: T
) -> Result<(), PositionError>
pub fn calculate_size_in_bytes(&self) -> usize
[src]
pub fn get_border_value(&self) -> T
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for RawVolume<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for RawVolume<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for RawVolume<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for RawVolume<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for RawVolume<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
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,
pub fn borrow_mut(&mut self) -> &mut 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.
pub 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>,