pub struct PathStep {
pub name: String,
pub get: Rc<dyn Fn(&dyn Any) -> Box<dyn Any>>,
pub owner: Rc<dyn Fn(&dyn Any) -> PropertyOwner>,
}Expand description
One step of a path, type-erased (one member access of upstream’s expression chain).
The steps of a path run in order: the first reads from the source of the path, each next one
from the value the step before produced. get and owner take that value as &dyn Any; a
value of another type is a programming error, and they panic.
Fields§
§name: StringThe name of the property (SearchTerm).
get: Rc<dyn Fn(&dyn Any) -> Box<dyn Any>>The value of the step, from the value of the previous one (or the source of the path).
owner: Rc<dyn Fn(&dyn Any) -> PropertyOwner>The object that owns the property, from the value of the previous step.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PathStep
impl !Send for PathStep
impl !Sync for PathStep
impl !UnwindSafe for PathStep
impl Freeze for PathStep
impl Unpin for PathStep
impl UnsafeUnpin for PathStep
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