pub struct CodeBlock<C, L = &'static str> { /* private fields */ }
Expand description
Formats a block of code. Can be created with code_block
.
Implementations§
Trait Implementations§
Source§impl<I, T, L> Formattable for CodeBlock<I, L>
impl<I, T, L> Formattable for CodeBlock<I, L>
impl<C: Copy, L: Copy> Copy for CodeBlock<C, L>
impl<C: Eq, L: Eq> Eq for CodeBlock<C, L>
impl<I, T, L> Formattable for CodeBlock<I, L>
impl<C, L> StructuralPartialEq for CodeBlock<C, L>
Auto Trait Implementations§
impl<C, L> Freeze for CodeBlock<C, L>
impl<C, L> RefUnwindSafe for CodeBlock<C, L>where
C: RefUnwindSafe,
L: RefUnwindSafe,
impl<C, L> Send for CodeBlock<C, L>
impl<C, L> Sync for CodeBlock<C, L>
impl<C, L> Unpin for CodeBlock<C, L>
impl<C, L> UnwindSafe for CodeBlock<C, L>where
C: UnwindSafe,
L: 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
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.