Struct miden_objects::assembly::AstSerdeOptions
source · pub struct AstSerdeOptions {
pub serialize_imports: bool,
}Expand description
Serialization options Used to enable or disable serialization of parts of the AST. Serialization options are serialized along with the AST to make the serialization format self-contained.
Fields§
§serialize_imports: boolImplementations§
source§impl AstSerdeOptions
impl AstSerdeOptions
pub const fn new(serialize_imports: bool) -> AstSerdeOptions
Trait Implementations§
source§impl Clone for AstSerdeOptions
impl Clone for AstSerdeOptions
source§fn clone(&self) -> AstSerdeOptions
fn clone(&self) -> AstSerdeOptions
Returns a copy 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 AstSerdeOptions
impl Debug for AstSerdeOptions
source§impl Deserializable for AstSerdeOptions
impl Deserializable for AstSerdeOptions
source§fn read_from<R>(source: &mut R) -> Result<AstSerdeOptions, DeserializationError>where
R: ByteReader,
fn read_from<R>(source: &mut R) -> Result<AstSerdeOptions, DeserializationError>where
R: ByteReader,
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moresource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
source§impl PartialEq for AstSerdeOptions
impl PartialEq for AstSerdeOptions
source§fn eq(&self, other: &AstSerdeOptions) -> bool
fn eq(&self, other: &AstSerdeOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for AstSerdeOptions
impl Serializable for AstSerdeOptions
source§fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
fn write_into<W>(&self, target: &mut W)where
W: ByteWriter,
Serializes
self into bytes and writes these bytes into the target.source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Copy for AstSerdeOptions
impl Eq for AstSerdeOptions
impl StructuralPartialEq for AstSerdeOptions
Auto Trait Implementations§
impl RefUnwindSafe for AstSerdeOptions
impl Send for AstSerdeOptions
impl Sync for AstSerdeOptions
impl Unpin for AstSerdeOptions
impl UnwindSafe for AstSerdeOptions
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