pub struct TapeDsonProcessor { /* private fields */ }Expand description
Tape-DSON processor for direct tape-to-operation conversion
Implementations§
Source§impl TapeDsonProcessor
impl TapeDsonProcessor
Sourcepub fn extract_operations(
&mut self,
tape: &DsonTape,
) -> Result<&[DsonOperation], String>
pub fn extract_operations( &mut self, tape: &DsonTape, ) -> Result<&[DsonOperation], String>
Sourcepub fn get_field(&self, path: &str) -> Option<&OperationValue>
pub fn get_field(&self, path: &str) -> Option<&OperationValue>
Get a field value by path
Sourcepub fn operations(&self) -> &[DsonOperation]
pub fn operations(&self) -> &[DsonOperation]
Get all extracted operations
Sourcepub const fn field_values(&self) -> &HashMap<String, OperationValue>
pub const fn field_values(&self) -> &HashMap<String, OperationValue>
Get all field values
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TapeDsonProcessor
impl RefUnwindSafe for TapeDsonProcessor
impl Send for TapeDsonProcessor
impl Sync for TapeDsonProcessor
impl Unpin for TapeDsonProcessor
impl UnwindSafe for TapeDsonProcessor
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
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