Struct lumina_node::store::VerifiedExtendedHeaders
source · pub struct VerifiedExtendedHeaders(/* private fields */);Expand description
Span of header that’s been verified internally
Implementations§
source§impl VerifiedExtendedHeaders
impl VerifiedExtendedHeaders
sourcepub unsafe fn new_unchecked(headers: Vec<ExtendedHeader>) -> Self
pub unsafe fn new_unchecked(headers: Vec<ExtendedHeader>) -> Self
Create a new instance out of pre-checked vec of headers
§Safety
This function may produce invalid VerifiedExtendedHeaders, if passed range is not
validated manually
Trait Implementations§
source§impl AsRef<[ExtendedHeader]> for VerifiedExtendedHeaders
impl AsRef<[ExtendedHeader]> for VerifiedExtendedHeaders
source§fn as_ref(&self) -> &[ExtendedHeader]
fn as_ref(&self) -> &[ExtendedHeader]
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for VerifiedExtendedHeaders
impl Clone for VerifiedExtendedHeaders
source§fn clone(&self) -> VerifiedExtendedHeaders
fn clone(&self) -> VerifiedExtendedHeaders
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<'a> From<&'a ExtendedHeader> for VerifiedExtendedHeaders
impl<'a> From<&'a ExtendedHeader> for VerifiedExtendedHeaders
source§fn from(value: &ExtendedHeader) -> Self
fn from(value: &ExtendedHeader) -> Self
Converts to this type from the input type.
source§impl From<[ExtendedHeader; 1]> for VerifiedExtendedHeaders
impl From<[ExtendedHeader; 1]> for VerifiedExtendedHeaders
1-length hedaer span is internally verified, this is valid
source§fn from(value: [ExtendedHeader; 1]) -> Self
fn from(value: [ExtendedHeader; 1]) -> Self
Converts to this type from the input type.
source§impl From<ExtendedHeader> for VerifiedExtendedHeaders
impl From<ExtendedHeader> for VerifiedExtendedHeaders
source§fn from(value: ExtendedHeader) -> Self
fn from(value: ExtendedHeader) -> Self
Converts to this type from the input type.
source§impl From<VerifiedExtendedHeaders> for Vec<ExtendedHeader>
impl From<VerifiedExtendedHeaders> for Vec<ExtendedHeader>
source§fn from(value: VerifiedExtendedHeaders) -> Self
fn from(value: VerifiedExtendedHeaders) -> Self
Converts to this type from the input type.
source§impl IntoIterator for VerifiedExtendedHeaders
impl IntoIterator for VerifiedExtendedHeaders
§type Item = ExtendedHeader
type Item = ExtendedHeader
The type of the elements being iterated over.
§type IntoIter = IntoIter<<VerifiedExtendedHeaders as IntoIterator>::Item>
type IntoIter = IntoIter<<VerifiedExtendedHeaders as IntoIterator>::Item>
Which kind of iterator are we turning this into?
source§impl<'a> TryFrom<&'a [ExtendedHeader]> for VerifiedExtendedHeaders
impl<'a> TryFrom<&'a [ExtendedHeader]> for VerifiedExtendedHeaders
Auto Trait Implementations§
impl Freeze for VerifiedExtendedHeaders
impl RefUnwindSafe for VerifiedExtendedHeaders
impl Send for VerifiedExtendedHeaders
impl Sync for VerifiedExtendedHeaders
impl Unpin for VerifiedExtendedHeaders
impl UnwindSafe for VerifiedExtendedHeaders
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more