pub struct Context<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Context<'a>
impl<'a> Context<'a>
pub fn new() -> Self
pub fn child<'b>(&'a self, path: &'b str) -> Context<'b>where
'a: 'b,
pub fn list(self) -> Self
pub fn optional(self) -> Self
pub fn variant(self) -> Self
pub fn is_list(&self) -> bool
pub fn is_optional(&self) -> bool
pub fn is_variant(&self) -> bool
pub fn join_path(&self, separator: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
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