pub struct Ray<'a, V: ReadVol, F: FnMut(&V::Vox) -> bool, G: RayForEach<V::Vox>> {
    vol: &'a V,
    from: Vec3<f32>,
    to: Vec3<f32>,
    until: F,
    is_while: bool,
    for_each: Option<G>,
    max_iter: usize,
    ignore_error: bool,
}Fields§
§vol: &'a V§from: Vec3<f32>§to: Vec3<f32>§until: F§is_while: bool§for_each: Option<G>§max_iter: usize§ignore_error: boolImplementations§
Source§impl<'a, V, F, G> Ray<'a, V, F, G>
 
impl<'a, V, F, G> Ray<'a, V, F, G>
pub fn new(vol: &'a V, from: Vec3<f32>, to: Vec3<f32>, until: F) -> Self
pub fn until<H: FnMut(&V::Vox) -> bool>(self, f: H) -> Ray<'a, V, H, G>
pub fn while_<H: FnMut(&V::Vox) -> bool>(self, f: H) -> Ray<'a, V, H, G>
pub fn for_each<H: RayForEach<V::Vox>>(self, f: H) -> Ray<'a, V, F, H>
pub fn max_iter(self, max_iter: usize) -> Self
pub fn ignore_error(self) -> Self
pub fn cast(self) -> (f32, Result<Option<&'a V::Vox>, V::Error>)
Auto Trait Implementations§
impl<'a, V, F, G> Freeze for Ray<'a, V, F, G>
impl<'a, V, F, G> RefUnwindSafe for Ray<'a, V, F, G>
impl<'a, V, F, G> Send for Ray<'a, V, F, G>
impl<'a, V, F, G> Sync for Ray<'a, V, F, G>
impl<'a, V, F, G> Unpin for Ray<'a, V, F, G>
impl<'a, V, F, G> UnwindSafe for Ray<'a, V, F, G>
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more