pub struct PatientAlignedGrid { /* private fields */ }Implementations§
Source§impl PatientAlignedGrid
impl PatientAlignedGrid
pub fn new(geometry: &GridGeometry) -> Result<Self, ViewError>
pub fn geometry(&self) -> &GridGeometry
pub const fn voxel_count(&self) -> usize
pub fn linear_index(&self, voxel: [u32; 3]) -> Result<usize, ViewError>
pub fn slice( &self, plane: AnatomicalPlane, crosshair: Crosshair, ) -> Result<SliceView, ViewError>
Trait Implementations§
Source§impl Clone for PatientAlignedGrid
impl Clone for PatientAlignedGrid
Source§fn clone(&self) -> PatientAlignedGrid
fn clone(&self) -> PatientAlignedGrid
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 moreSource§impl Debug for PatientAlignedGrid
impl Debug for PatientAlignedGrid
Source§impl PartialEq for PatientAlignedGrid
impl PartialEq for PatientAlignedGrid
impl StructuralPartialEq for PatientAlignedGrid
Auto Trait Implementations§
impl Freeze for PatientAlignedGrid
impl RefUnwindSafe for PatientAlignedGrid
impl Send for PatientAlignedGrid
impl Sync for PatientAlignedGrid
impl Unpin for PatientAlignedGrid
impl UnsafeUnpin for PatientAlignedGrid
impl UnwindSafe for PatientAlignedGrid
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