pub struct MetaItemContext {
pub item_ctx: Option<ObjectMeta>,
pub parent_ctx: Option<ObjectMeta>,
}Fields§
§item_ctx: Option<ObjectMeta>§parent_ctx: Option<ObjectMeta>Implementations§
Source§impl MetaItemContext
impl MetaItemContext
pub fn with_ctx(self, ctx: ObjectMeta) -> Self
pub fn with_parent_ctx(self, ctx: ObjectMeta) -> Self
pub fn make_parent_ctx(&self) -> Self
Trait Implementations§
Source§impl Clone for MetaItemContext
impl Clone for MetaItemContext
Source§fn clone(&self) -> MetaItemContext
fn clone(&self) -> MetaItemContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetaItemContext
impl Debug for MetaItemContext
Source§impl Default for MetaItemContext
impl Default for MetaItemContext
Source§impl PartialEq for MetaItemContext
impl PartialEq for MetaItemContext
impl StructuralPartialEq for MetaItemContext
Auto Trait Implementations§
impl Freeze for MetaItemContext
impl RefUnwindSafe for MetaItemContext
impl Send for MetaItemContext
impl Sync for MetaItemContext
impl Unpin for MetaItemContext
impl UnwindSafe for MetaItemContext
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