pub struct Same { /* private fields */ }Expand description
See same.
Implementations§
Source§impl Same
impl Same
Sourcepub fn message(self, message: impl Into<String>) -> Self
pub fn message(self, message: impl Into<String>) -> Self
Shown when the two differ, instead of messages::COPY_CONTENT_MISMATCH.
Sourcepub fn source_error(self, message: impl Into<String>) -> Self
pub fn source_error(self, message: impl Into<String>) -> Self
Shown when the source is gone, instead of messages::COPY_SOURCE_MISSING.
Sourcepub fn destination_error(self, message: impl Into<String>) -> Self
pub fn destination_error(self, message: impl Into<String>) -> Self
Shown when the destination is missing, instead of messages::COPY_DEST_MISSING.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Same
impl RefUnwindSafe for Same
impl Send for Same
impl Sync for Same
impl Unpin for Same
impl UnsafeUnpin for Same
impl UnwindSafe for Same
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