pub struct AnyShellWording(/* private fields */);Expand description
A shared ShellWording, cloned into every shell, store and tool that
renders a text.
Implementations§
Source§impl AnyShellWording
impl AnyShellWording
Sourcepub fn new(wording: impl ShellWording) -> Self
pub fn new(wording: impl ShellWording) -> Self
Shares wording.
Trait Implementations§
Source§impl Clone for AnyShellWording
impl Clone for AnyShellWording
Source§impl Debug for AnyShellWording
impl Debug for AnyShellWording
Source§impl Deref for AnyShellWording
impl Deref for AnyShellWording
Source§impl From<Arc<dyn ShellWording>> for AnyShellWording
Shares a value another wrapper already holds, so both render through the
same object.
impl From<Arc<dyn ShellWording>> for AnyShellWording
Shares a value another wrapper already holds, so both render through the same object.
Source§fn from(wording: Arc<dyn ShellWording>) -> Self
fn from(wording: Arc<dyn ShellWording>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AnyShellWording
impl !UnwindSafe for AnyShellWording
impl Forget for AnyShellWording
impl Freeze for AnyShellWording
impl Move for AnyShellWording
impl Send for AnyShellWording
impl Sync for AnyShellWording
impl Unpin for AnyShellWording
impl UnsafeUnpin for AnyShellWording
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more