Struct bpstd::NonStandardValue
source · 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 strImplementations§
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> 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.