pub struct EditorMessage { /* private fields */ }Implementations§
Source§impl EditorMessage
impl EditorMessage
Sourcepub fn new(message: String, duration: Duration) -> Self
pub fn new(message: String, duration: Duration) -> Self
Creates a new instance of EditorMessage.
Trait Implementations§
Source§impl Clone for EditorMessage
impl Clone for EditorMessage
Source§fn clone(&self) -> EditorMessage
fn clone(&self) -> EditorMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorMessage
impl Debug for EditorMessage
Source§impl Default for EditorMessage
impl Default for EditorMessage
Source§fn default() -> EditorMessage
fn default() -> EditorMessage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EditorMessage
impl RefUnwindSafe for EditorMessage
impl Send for EditorMessage
impl Sync for EditorMessage
impl Unpin for EditorMessage
impl UnwindSafe for EditorMessage
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<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