pub struct PromoteError {
pub type_name: &'static str,
}Expand description
Returned when a Value cannot be promoted to SharedValue.
Fields§
§type_name: &'static strImplementations§
Source§impl PromoteError
impl PromoteError
pub fn not_promotable(type_name: &'static str) -> Self
Trait Implementations§
Source§impl Clone for PromoteError
impl Clone for PromoteError
Source§fn clone(&self) -> PromoteError
fn clone(&self) -> PromoteError
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 moreSource§impl Debug for PromoteError
impl Debug for PromoteError
Source§impl Display for PromoteError
impl Display for PromoteError
Source§impl Error for PromoteError
impl Error for PromoteError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PromoteError
impl RefUnwindSafe for PromoteError
impl Send for PromoteError
impl Sync for PromoteError
impl Unpin for PromoteError
impl UnsafeUnpin for PromoteError
impl UnwindSafe for PromoteError
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