Struct mechtron::MechtronSkel
source · pub struct MechtronSkel<P>where
P: Platform,{
pub details: Details,
pub logger: PointLogger,
pub artifacts: ArtifactApi,
/* private fields */
}
Expand description
The MechtronSkel holds the common static elements of the Mechtron together Since a Mechtron is always an instance created to handle a single Directed Wave or Init, the Skel is cloned and passed to each Mechtron instance.
Fields
details: Details
logger: PointLogger
artifacts: ArtifactApi
Implementations
sourceimpl<P> MechtronSkel<P>where
P: Platform,
impl<P> MechtronSkel<P>where
P: Platform,
pub fn new(
details: Details,
logger: PointLogger,
phantom: PhantomData<P>,
artifacts: ArtifactApi
) -> Self
pub fn bundle(&self) -> Result<Point, P::Err>
pub fn raw_from_bundle<S: ToString>(
&self,
path: S
) -> Result<ArtRef<Vec<u8>>, P::Err>
Trait Implementations
sourceimpl<P: Clone> Clone for MechtronSkel<P>where
P: Platform,
impl<P: Clone> Clone for MechtronSkel<P>where
P: Platform,
sourcefn clone(&self) -> MechtronSkel<P>
fn clone(&self) -> MechtronSkel<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl<P> !RefUnwindSafe for MechtronSkel<P>
impl<P> Send for MechtronSkel<P>
impl<P> Sync for MechtronSkel<P>
impl<P> Unpin for MechtronSkel<P>where
P: Unpin,
impl<P> !UnwindSafe for MechtronSkel<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
fn extract_context(self, _original_input: I)
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
impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
fn recreate_context(_original_input: I, tail: I) -> I
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