pub enum ObjectRecord {
Header(HeaderRecord),
Text(TextRecord),
End(EndRecord),
Modification(ModificationRecord),
Define(DefineRecord),
Refer(ReferRecord),
}Variants§
Header(HeaderRecord)
Text(TextRecord)
End(EndRecord)
Modification(ModificationRecord)
Define(DefineRecord)
Refer(ReferRecord)
Trait Implementations§
Source§impl Clone for ObjectRecord
impl Clone for ObjectRecord
Source§fn clone(&self) -> ObjectRecord
fn clone(&self) -> ObjectRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectRecord
impl Debug for ObjectRecord
Source§impl Display for ObjectRecord
impl Display for ObjectRecord
Source§impl FrameLike for ObjectRecord
impl FrameLike for ObjectRecord
Source§fn size(&self) -> Option<i32>
fn size(&self) -> Option<i32>
Returns the size of the frame in bytes.
Will be used to offset the location counter.
If the frame is a directive, the size will be 0.
If the frame size cannot be predicted, return None.
Source§fn parse(
_operator: &str,
_operand: Option<&str>,
_label: Option<&str>,
) -> Option<Result<Self, String>>where
Self: Sized,
fn parse(
_operator: &str,
_operand: Option<&str>,
_label: Option<&str>,
) -> Option<Result<Self, String>>where
Self: Sized,
Parses the operator, operand and label (only for directives), returns a Frame.
If the operator is not recognized, return None.
If the operator is recognized but the operand is invalid, return an error as a String.
If the operator is recognized and the operand is valid, return the Frame.
Source§fn expressions(&self) -> Option<Vec<&Expression>>
fn expressions(&self) -> Option<Vec<&Expression>>
Access the epressions of a frame if any.
Source§impl PartialEq for ObjectRecord
impl PartialEq for ObjectRecord
impl StructuralPartialEq for ObjectRecord
Auto Trait Implementations§
impl Freeze for ObjectRecord
impl RefUnwindSafe for ObjectRecord
impl Send for ObjectRecord
impl Sync for ObjectRecord
impl Unpin for ObjectRecord
impl UnwindSafe for ObjectRecord
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