pub struct Context<T> { /* private fields */ }
Implementations§
Source§impl<T> Context<T>
impl<T> Context<T>
pub fn new(prefix: impl AsRef<str>) -> Self
pub fn prefix(&self) -> String
pub fn with_var_name(&self, var_name: &str) -> Self
pub fn infer_var_name(&self) -> String
pub fn push_prefix(&self, val: String) -> Self
pub fn with_default_var_value<U>(&self, val: Option<U>) -> Context<U>
pub fn take_default_var_value(&mut self) -> Option<T>
Auto Trait Implementations§
impl<T> Freeze for Context<T>where
T: Freeze,
impl<T> RefUnwindSafe for Context<T>where
T: RefUnwindSafe,
impl<T> Send for Context<T>where
T: Send,
impl<T> Sync for Context<T>where
T: Sync,
impl<T> Unpin for Context<T>where
T: Unpin,
impl<T> UnwindSafe for Context<T>where
T: UnwindSafe,
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