pub enum ProjectionNode {
All,
Fields(BTreeMap<String, ProjectionNode>),
}Expand description
Compiled tree describing which fields/subtrees to materialize during lookup.
Variants§
All
Materialize the entire subtree rooted here.
Fields(BTreeMap<String, ProjectionNode>)
Materialize only the named child fields/keys.
Implementations§
Source§impl ProjectionNode
impl ProjectionNode
pub fn child(&self, name: &str) -> Option<&ProjectionNode>
pub fn selects_any_of(&self, names: &[String]) -> bool
Trait Implementations§
Source§impl Clone for ProjectionNode
impl Clone for ProjectionNode
Source§impl Debug for ProjectionNode
impl Debug for ProjectionNode
impl Eq for ProjectionNode
Source§impl PartialEq for ProjectionNode
impl PartialEq for ProjectionNode
impl StructuralPartialEq for ProjectionNode
Auto Trait Implementations§
impl Forget for ProjectionNode
impl Freeze for ProjectionNodewhere
*const LeafNode<String, ProjectionNode> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ProjectionNode)>>: Freeze,
impl Move for ProjectionNode
impl RefUnwindSafe for ProjectionNode
impl Send for ProjectionNodewhere
NodeRef<Owned, String, ProjectionNode, LeafOrInternal>: Send,
BoxRaw<(String, ProjectionNode)>: Send,
impl Sync for ProjectionNodewhere
NodeRef<Owned, String, ProjectionNode, LeafOrInternal>: Sync,
BoxRaw<(String, ProjectionNode)>: Sync,
impl Unpin for ProjectionNodewhere
*const LeafNode<String, ProjectionNode> is !null: Unpin,
Box<(String, ProjectionNode)>: Unpin,
impl UnsafeUnpin for ProjectionNodewhere
*const LeafNode<String, ProjectionNode> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ProjectionNode)>>: UnsafeUnpin,
impl UnwindSafe for ProjectionNode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.