pub struct Outline {
pub skeleton: u64,
pub bodies: Vec<OutlineBody>,
pub bindings: BTreeMap<String, u64>,
pub skeleton_refs: Vec<String>,
pub refs: Vec<String>,
pub declarators: Vec<(String, (u32, u32))>,
}Expand description
The outline of a source text. See the module docs.
Fields§
§skeleton: u64The hash of the module code and of the import sources.
bodies: Vec<OutlineBody>The outer functions, in source order. The index is the ordinal of the probe id.
bindings: BTreeMap<String, u64>The hash of each binding of an import or a pure declaration.
skeleton_refs: Vec<String>The names that the module code references outside each function body, sorted.
refs: Vec<String>Each name that the text references, sorted.
declarators: Vec<(String, (u32, u32))>The span of each declarator of a pure variable declaration, with its name, in source order. A mutant in such a declarator runs when the module loads, and only code that reads the name can observe it.
Implementations§
Source§impl Outline
impl Outline
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Outline
impl<'de> Deserialize<'de> for Outline
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Outline
impl StructuralPartialEq for Outline
Auto Trait Implementations§
impl Forget for Outline
impl Freeze for Outlinewhere
*const u8 is !null: Freeze,
PhantomData<OutlineBody>: Freeze,
*const LeafNode<String, u64> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, u64)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, (u32, u32))>: Freeze,
impl Move for Outline
impl RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnsafeUnpin for Outlinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<OutlineBody>: UnsafeUnpin,
*const LeafNode<String, u64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, u64)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, (u32, u32))>: UnsafeUnpin,
impl UnwindSafe for Outline
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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