Struct miden_assembly::ast::ProcReExport
source · pub struct ProcReExport { /* private fields */ }Expand description
Represents a re-exported procedure.
A re-exported procedure is a procedure that is defined in a different module in the same library or a different library and re-exported with the same or a different name. The re-exported procedure is not copied into the module, but rather a reference to it is added to the [ModuleAST].
Implementations§
source§impl ProcReExport
impl ProcReExport
sourcepub fn new(
proc_id: ProcedureId,
name: ProcedureName,
docs: Option<String>
) -> Self
pub fn new( proc_id: ProcedureId, name: ProcedureName, docs: Option<String> ) -> Self
Creates a new re-exported procedure.
sourcepub fn proc_id(&self) -> ProcedureId
pub fn proc_id(&self) -> ProcedureId
Returns the ID of the re-exported procedure.
sourcepub fn name(&self) -> &ProcedureName
pub fn name(&self) -> &ProcedureName
Returns the name of the re-exported procedure.
sourcepub fn docs(&self) -> Option<&str>
pub fn docs(&self) -> Option<&str>
Returns the documentation of the re-exported procedure, if present.
sourcepub fn get_alias_id(&self, module_path: &LibraryPath) -> ProcedureId
pub fn get_alias_id(&self, module_path: &LibraryPath) -> ProcedureId
Returns the ID of the re-exported procedure using the specified module.
Trait Implementations§
source§impl Clone for ProcReExport
impl Clone for ProcReExport
source§fn clone(&self) -> ProcReExport
fn clone(&self) -> ProcReExport
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 ProcReExport
impl Debug for ProcReExport
source§impl Default for ProcReExport
impl Default for ProcReExport
source§fn default() -> ProcReExport
fn default() -> ProcReExport
Returns the “default value” for a type. Read more
source§impl Deserializable for ProcReExport
impl Deserializable for ProcReExport
source§fn read_from<R: ByteReader>(
source: &mut R
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R ) -> Result<Self, DeserializationError>
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 ProcReExport
impl PartialEq for ProcReExport
source§fn eq(&self, other: &ProcReExport) -> bool
fn eq(&self, other: &ProcReExport) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serializable for ProcReExport
impl Serializable for ProcReExport
source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
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 Eq for ProcReExport
impl StructuralPartialEq for ProcReExport
Auto Trait Implementations§
impl Freeze for ProcReExport
impl RefUnwindSafe for ProcReExport
impl Send for ProcReExport
impl Sync for ProcReExport
impl Unpin for ProcReExport
impl UnwindSafe for ProcReExport
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