pub struct ImportedFunction {
pub name: String,
pub allow_string_args: u8,
pub n_args: i32,
}Expand description
One entry in the F segment: an externally-defined function the model
references via opcode f<i> <n_args> inside expression graphs.
Fields§
§name: String§allow_string_args: u80 -> no string arguments.
1 -> string arguments allowed.
n_args: i32>= 0 -> exact arity.
< 0 -> at least -(n + 1) arguments.
Trait Implementations§
Source§impl Clone for ImportedFunction
impl Clone for ImportedFunction
Source§fn clone(&self) -> ImportedFunction
fn clone(&self) -> ImportedFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImportedFunction
impl RefUnwindSafe for ImportedFunction
impl Send for ImportedFunction
impl Sync for ImportedFunction
impl Unpin for ImportedFunction
impl UnsafeUnpin for ImportedFunction
impl UnwindSafe for ImportedFunction
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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