pub struct Injection {Show 18 fields
pub mode: i64,
pub full: bool,
pub key_i: i64,
pub keys: Rc<RefCell<Vec<String>>>,
pub key: String,
pub val: Value,
pub parent: Value,
pub path: Vec<String>,
pub nodes: Vec<Value>,
pub handler: NativeFn,
pub errs: Value,
pub meta: Value,
pub dparent: Value,
pub dpath: Vec<String>,
pub base: Option<String>,
pub modify: Option<Modify>,
pub extra: Option<Value>,
pub prior: Option<Inj>,
}Fields§
§mode: i64§full: bool§key_i: i64§keys: Rc<RefCell<Vec<String>>>§key: String§val: Value§parent: Value§path: Vec<String>§nodes: Vec<Value>§handler: NativeFn§errs: Value§meta: Value§dparent: Value§dpath: Vec<String>§base: Option<String>§modify: Option<Modify>§extra: Option<Value>§prior: Option<Inj>Implementations§
Source§impl Injection
impl Injection
Sourcepub fn from_def(def: Option<&InjectDef>) -> Inj
pub fn from_def(def: Option<&InjectDef>) -> Inj
Build a (mostly-empty) injection carrying just the fields the public
getpath / setpath read from an injdef.
Sourcepub fn root(val: Value, parent: Value) -> Inj
pub fn root(val: Value, parent: Value) -> Inj
Fresh root injection: val wrapped in the virtual parent holder.
pub fn descend(this: &Inj)
pub fn child(this: &Inj, key_i: i64, keys: Rc<RefCell<Vec<String>>>) -> Inj
pub fn setval(this: &Inj, val: Value, ancestor: Option<i64>) -> Value
Auto Trait Implementations§
impl !RefUnwindSafe for Injection
impl !Send for Injection
impl !Sync for Injection
impl !UnwindSafe for Injection
impl Freeze for Injection
impl Unpin for Injection
impl UnsafeUnpin for Injection
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