pub struct AliasContext(/* private fields */);Expand description
A registry of value-to-alias mappings.
Cheap to clone — all clones share the same underlying registry via
Arc<Mutex<_>>.
Implementations§
Source§impl AliasContext
impl AliasContext
Sourcepub fn set_brackets(&self, brackets: (&'static str, &'static str))
pub fn set_brackets(&self, brackets: (&'static str, &'static str))
Change the brackets used to wrap aliases in formatted output.
Brackets are snapshotted into each alias at registration time, so this only affects aliases registered after the call.
Trait Implementations§
Source§impl Clone for AliasContext
impl Clone for AliasContext
Source§fn clone(&self) -> AliasContext
fn clone(&self) -> AliasContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AliasContext
impl RefUnwindSafe for AliasContext
impl Send for AliasContext
impl Sync for AliasContext
impl Unpin for AliasContext
impl UnsafeUnpin for AliasContext
impl UnwindSafe for AliasContext
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