pub trait PtrOpBuilder: Dataflow {
// Provided methods
fn add_new_ptr(&mut self, val_wire: Wire) -> Result<Wire, BuildError> { ... }
fn add_read_ptr(
&mut self,
ptr_wire: Wire,
ty: Type,
) -> Result<Wire, BuildError> { ... }
fn add_write_ptr(
&mut self,
ptr_wire: Wire,
val_wire: Wire,
) -> Result<(), BuildError> { ... }
}
Expand description
An extension trait for Dataflow providing methods to add pointer operations.
Provided Methods§
Sourcefn add_new_ptr(&mut self, val_wire: Wire) -> Result<Wire, BuildError>
fn add_new_ptr(&mut self, val_wire: Wire) -> Result<Wire, BuildError>
Add a “ptr.New” op.
Sourcefn add_read_ptr(&mut self, ptr_wire: Wire, ty: Type) -> Result<Wire, BuildError>
fn add_read_ptr(&mut self, ptr_wire: Wire, ty: Type) -> Result<Wire, BuildError>
Add a “ptr.Read” op.
Sourcefn add_write_ptr(
&mut self,
ptr_wire: Wire,
val_wire: Wire,
) -> Result<(), BuildError>
fn add_write_ptr( &mut self, ptr_wire: Wire, val_wire: Wire, ) -> Result<(), BuildError>
Add a “ptr.Write” op.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.