Struct grin_chain::types::Options [−][src]
pub struct Options { /* fields omitted */ }
Options for block validation
Implementations
impl Options
[src]
impl Options
[src]pub const SKIP_POW: Options
[src]
pub const SKIP_POW: Options
[src]Runs without checking the Proof of Work, mostly to make testing easier.
pub fn from_bits(bits: u32) -> Option<Options>
[src]
pub fn from_bits(bits: u32) -> Option<Options>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> Options
[src]
pub const fn from_bits_truncate(bits: u32) -> Options
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> Options
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> Options
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: Options) -> bool
[src]
pub const fn intersects(&self, other: Options) -> bool
[src]Returns true
if there are flags common to both self
and other
.
Trait Implementations
impl BitAndAssign<Options> for Options
[src]
impl BitAndAssign<Options> for Options
[src]fn bitand_assign(&mut self, other: Options)
[src]
fn bitand_assign(&mut self, other: Options)
[src]Disables all flags disabled in the set.
impl BitOrAssign<Options> for Options
[src]
impl BitOrAssign<Options> for Options
[src]fn bitor_assign(&mut self, other: Options)
[src]
fn bitor_assign(&mut self, other: Options)
[src]Adds the set of flags.
impl BitXorAssign<Options> for Options
[src]
impl BitXorAssign<Options> for Options
[src]fn bitxor_assign(&mut self, other: Options)
[src]
fn bitxor_assign(&mut self, other: Options)
[src]Toggles the set of flags.
impl Extend<Options> for Options
[src]
impl Extend<Options> for Options
[src]fn extend<T: IntoIterator<Item = Options>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = Options>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<Options> for Options
[src]
impl FromIterator<Options> for Options
[src]impl Ord for Options
[src]
impl Ord for Options
[src]impl PartialOrd<Options> for Options
[src]
impl PartialOrd<Options> for Options
[src]fn partial_cmp(&self, other: &Options) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Options) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl SubAssign<Options> for Options
[src]
impl SubAssign<Options> for Options
[src]fn sub_assign(&mut self, other: Options)
[src]
fn sub_assign(&mut self, other: Options)
[src]Disables all flags enabled in the set.
impl Copy for Options
[src]
impl Eq for Options
[src]
impl StructuralEq for Options
[src]
impl StructuralPartialEq for Options
[src]
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
Clone this value, and then immediately put it into a Box
behind a trait object of this trait. Read more
pub fn self_address_mut(&mut self) -> *mut ()
pub fn self_address_mut(&mut self) -> *mut ()
Returns the address of self
. Read more
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,