pub struct NonStandardValue<T>{
pub value: T,
pub matter: &'static str,
}
Expand description
the provided value {value} for {matter} is non-standard; while it is accepted by the bitcoin consensus rules, the software prohibits from using it.
Fields§
§value: T
§matter: &'static str
Implementations§
Source§impl<T> NonStandardValue<T>
impl<T> NonStandardValue<T>
pub const fn with(value: T, matter: &'static str) -> NonStandardValue<T>
Trait Implementations§
Source§impl<T> Clone for NonStandardValue<T>
impl<T> Clone for NonStandardValue<T>
Source§fn clone(&self) -> NonStandardValue<T>
fn clone(&self) -> NonStandardValue<T>
Returns a copy 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<T> Debug for NonStandardValue<T>
impl<T> Debug for NonStandardValue<T>
Source§impl<T> Display for NonStandardValue<T>
impl<T> Display for NonStandardValue<T>
Source§impl<T> Error for NonStandardValue<T>
impl<T> Error for NonStandardValue<T>
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()
Source§impl<T> From<NonStandardValue<T>> for String
impl<T> From<NonStandardValue<T>> for String
Source§fn from(err: NonStandardValue<T>) -> String
fn from(err: NonStandardValue<T>) -> String
Converts to this type from the input type.
Source§impl<T> PartialEq for NonStandardValue<T>
impl<T> PartialEq for NonStandardValue<T>
impl<T> Copy for NonStandardValue<T>
impl<T> Eq for NonStandardValue<T>
impl<T> StructuralPartialEq for NonStandardValue<T>
Auto Trait Implementations§
impl<T> Freeze for NonStandardValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for NonStandardValue<T>where
T: RefUnwindSafe,
impl<T> Send for NonStandardValue<T>where
T: Send,
impl<T> Sync for NonStandardValue<T>where
T: Sync,
impl<T> Unpin for NonStandardValue<T>where
T: Unpin,
impl<T> UnwindSafe for NonStandardValue<T>where
T: 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§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.