Struct SSTSectionView
pub struct SSTSectionView<'bc, C> { /* private fields */ }Expand description
A lightweight view into one section of an SST file.
Implementations§
§impl<'bc, C> SSTSectionView<'bc, C>
impl<'bc, C> SSTSectionView<'bc, C>
pub fn name(&self) -> &'bc str
pub fn name(&self) -> &'bc str
The section’s name (from .section <name>). Names only select
sections; execution uses addresses.
pub fn context_handle(&self) -> ContextHandle<C>
pub fn header_text(&self) -> &'bc str
pub fn header_text(&self) -> &'bc str
The raw text of the section’s .header block (empty when omitted).
pub fn header_span(&self) -> Range<usize> ⓘ
pub fn header_span(&self) -> Range<usize> ⓘ
The byte range of header_text within
file_text.
pub fn file_text(&self) -> &'bc str
pub fn file_text(&self) -> &'bc str
The complete text of the file this section belongs to, so block-relative offsets can be reported as file lines and columns.
pub fn parse_header<H>(&self) -> Result<H, Report>where
H: SSTHeader,
pub fn parse_header<H>(&self) -> Result<H, Report>where
H: SSTHeader,
Parse the specified header from the section’s header text.
Trait Implementations§
§impl<C> Clone for SSTSectionView<'_, C>
impl<C> Clone for SSTSectionView<'_, C>
§fn clone(&self) -> SSTSectionView<'_, C>
fn clone(&self) -> SSTSectionView<'_, C>
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 moreAuto Trait Implementations§
impl<'bc, C> Freeze for SSTSectionView<'bc, C>
impl<'bc, C> RefUnwindSafe for SSTSectionView<'bc, C>where
C: RefUnwindSafe,
impl<'bc, C> Send for SSTSectionView<'bc, C>
impl<'bc, C> Sync for SSTSectionView<'bc, C>
impl<'bc, C> Unpin for SSTSectionView<'bc, C>
impl<'bc, C> UnsafeUnpin for SSTSectionView<'bc, C>
impl<'bc, C> UnwindSafe for SSTSectionView<'bc, C>where
C: RefUnwindSafe,
Blanket Implementations§
Source§impl<D> Apply<PushToStack<()>> for D
impl<D> Apply<PushToStack<()>> for D
Source§fn apply(&mut self, _: PushToStack<()>)
fn apply(&mut self, _: PushToStack<()>)
Apply a single effect to this destination.
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,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].