pub struct CompilableUnit<'a> {
pub fn_name: String,
pub exprs: &'a [Expression],
pub variables: Vec<String>,
pub unit_size: usize,
}Fields§
§fn_name: String§exprs: &'a [Expression]§variables: Vec<String>§unit_size: usizeImplementations§
Source§impl<'a> CompilableUnit<'a>
impl<'a> CompilableUnit<'a>
pub fn new( name: &str, exprs: &'a [Expression], variables: Vec<String>, unit_size: usize, ) -> Self
pub fn add_to_module<R: RealScalar>(&self, module: &Module<R>)
Auto Trait Implementations§
impl<'a> Freeze for CompilableUnit<'a>
impl<'a> RefUnwindSafe for CompilableUnit<'a>
impl<'a> Send for CompilableUnit<'a>
impl<'a> Sync for CompilableUnit<'a>
impl<'a> Unpin for CompilableUnit<'a>
impl<'a> UnwindSafe for CompilableUnit<'a>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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