Skip to main content

Program

Struct Program 

Source
pub struct Program { /* private fields */ }
Expand description

编译产物。

Implementations§

Source§

impl Program

Source

pub fn eval<'a, D: Data<'a>>( &'a self, row: D, params: Option<D>, ) -> Result<bool, Error>

对一行数据求值。

row 是 item,params 是 params(未传时为 undefined)。 两者必须是同一个类型——调用方用一个覆盖两种数据来源的枚举适配器即可。

返回 Err 时是否 fail-closed 由调用方决定。

Trait Implementations§

Source§

impl Debug for Program

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Program

§

impl Freeze for Program
where *const [Node] is !null: Freeze, PhantomData<[Node]>: Freeze, *const str is !null: Freeze, PhantomData<str>: Freeze, *const [PathSeg] is !null: Freeze, PhantomData<[PathSeg]>: Freeze, *const Node is !null: Freeze, PhantomData<Node>: Freeze, *const [Box<str>] is !null: Freeze, PhantomData<[Box<str>]>: Freeze, PhantomData<fn() -> FxHasher>: Freeze, *const u8 is !null: Freeze, PhantomData<(Box<str>, ())>: Freeze, *const [i64] is !null: Freeze, PhantomData<[i64]>: Freeze, PhantomData<(i64, ())>: Freeze, *const [f64] is !null: Freeze, PhantomData<[f64]>: Freeze,

§

impl Move for Program

§

impl RefUnwindSafe for Program

§

impl Send for Program
where BoxRaw<[Node]>: Send, BoxRaw<str>: Send, BoxRaw<[PathSeg]>: Send, BoxRaw<Node>: Send, BoxRaw<[Box<str>]>: Send, RawTable<(Box<str>, ())>: Send, BoxRaw<[i64]>: Send, RawTable<(i64, ())>: Send, BoxRaw<[f64]>: Send,

§

impl Sync for Program
where BoxRaw<[Node]>: Sync, BoxRaw<str>: Sync, BoxRaw<[PathSeg]>: Sync, BoxRaw<Node>: Sync, BoxRaw<[Box<str>]>: Sync, RawTable<(Box<str>, ())>: Sync, BoxRaw<[i64]>: Sync, RawTable<(i64, ())>: Sync, BoxRaw<[f64]>: Sync,

§

impl Unpin for Program
where Box<[Node]>: Unpin, Box<str>: Unpin, Box<[PathSeg]>: Unpin, Box<Node>: Unpin, Box<[Box<str>]>: Unpin, *const u8 is !null: Unpin, Box<[i64]>: Unpin, Box<[f64]>: Unpin,

§

impl UnsafeUnpin for Program

§

impl UnwindSafe for Program
where BoxRaw<[Node]>: UnwindSafe, BoxRaw<str>: UnwindSafe, BoxRaw<[PathSeg]>: UnwindSafe, BoxRaw<Node>: UnwindSafe, BoxRaw<[Box<str>]>: UnwindSafe, NonNull<u8>: UnwindSafe, BoxRaw<[i64]>: UnwindSafe, BoxRaw<[f64]>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.