Struct cosmic_space::particle::traversal::Traversal

source ·
pub struct Traversal<W> {
    pub point: Point,
    pub payload: W,
    pub record: ParticleRecord,
    pub layer: Layer,
    pub dest: Option<Layer>,
    pub logger: SpanLogger,
    pub dir: TraversalDirection,
    pub to: Surface,
}

Fields§

§point: Point§payload: W§record: ParticleRecord§layer: Layer§dest: Option<Layer>§logger: SpanLogger§dir: TraversalDirection§to: Surface

Implementations§

source§

impl<W> Traversal<W>

source

pub fn new( payload: W, record: ParticleRecord, layer: Layer, logger: SpanLogger, dir: TraversalDirection, dest: Option<Layer>, to: Surface, point: Point, ) -> Self

source

pub fn extract(self) -> W

source

pub fn with<N>(self, payload: N) -> Traversal<N>

source

pub fn reverse(&mut self)

source§

impl<W> Traversal<W>

source

pub fn next(&mut self) -> Option<Layer>

source

pub fn is_inter_layer(&self) -> bool

source§

impl Traversal<UltraWave>

source§

impl Traversal<DirectedWave>

source

pub fn wrap(self) -> Traversal<UltraWave>

source§

impl Traversal<ReflectedWave>

source

pub fn wrap(self) -> Traversal<UltraWave>

source§

impl Traversal<SingularDirectedWave>

source

pub fn wrap(self) -> Traversal<UltraWave>

source§

impl Traversal<ReflectedWave>

source§

impl Traversal<Wave<Ping>>

source§

impl Traversal<Wave<Pong>>

Trait Implementations§

source§

impl<W: Clone> Clone for Traversal<W>

source§

fn clone(&self) -> Traversal<W>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<W> DerefMut for Traversal<W>

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl<W> Trackable for Traversal<W>
where W: Trackable,

source§

impl<W> Deref for Traversal<W>

source§

type Target = W

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.

Auto Trait Implementations§

§

impl<W> Freeze for Traversal<W>
where W: Freeze,

§

impl<W> !RefUnwindSafe for Traversal<W>

§

impl<W> Send for Traversal<W>
where W: Send,

§

impl<W> Sync for Traversal<W>
where W: Sync,

§

impl<W> Unpin for Traversal<W>
where W: Unpin,

§

impl<W> !UnwindSafe for Traversal<W>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<I, T> ExtractContext<I, ()> for T

source§

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<I> RecreateContext<I> for I

source§

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.