Skip to main content

LaunchEntry

Struct LaunchEntry 

Source
pub struct LaunchEntry<'a> {
    pub krate: &'a Path,
    pub vis: &'a Visibility,
    pub root: &'a Ident,
    pub nodes: &'a [Type],
    pub mounts: &'a [Ident],
    pub resources: &'a [ResourceField],
    pub fused: &'a [FusedMember],
    pub origins: &'a [OriginMount],
}
Expand description

One ingraph root’s launch entry, ready to emit.

It borrows for OptionsSpine’s reason: what it needs is the list the root model already holds, and a second copy of that list is a second thing to keep in step.

Fields§

§krate: &'a Path

Where ingraph lives, as the declaration named it.

§vis: &'a Visibility

The root’s own visibility — what the entry and the node bag take.

§root: &'a Ident

The root type, whose name both emitted names derive from.

§nodes: &'a [Type]

The NODES, in declaration order.

§mounts: &'a [Ident]

The mount NAMES beside them, in that same order — the sections’ keys, and the names a refusal reports a node under.

§resources: &'a [ResourceField]

The RESOURCES, in declaration order — the create walk’s FIRST step.

§fused: &'a [FusedMember]

The SLOT-BEARING members, in declaration order — LAYER TWO’s list and the sole-default law’s.

A fused member is a retrieving declaration, so it is the tier that owns corpora: what the launch reads off each one is Habitats::make (the homes it makes, in the targets its own legs name), Habitats::TARGETS (those same targets as demands, which is what mounts them) and Habitats::UNBOUND (the corpora whose legs named nothing, which the deployment’s catalog binds). Empty is the ordinary state of a graph that retrieves nothing, and it is what makes all three emissions disappear rather than emit a loop over no members.

§origins: &'a [OriginMount]

The ORIGINS, in declaration order — the tier whose members are HEADS the graph does not feed.

Five lines apiece and no more, which is what an origin’s whole shape costs: declared onto the blueprint through Blueprint::origin (a head, whose effect is pure), built from its own section by the same Creation::node a node goes through, its ONE out-edge opened from the producer’s end by Wiring::bridge, enrolled, and put on an engine by Ignition::origin_kept with that edge as its FEED.

Empty is the ordinary state, and it is what makes every line of this tier disappear.

Implementations§

Source§

impl LaunchEntry<'_>

Source

pub fn emit(&self) -> TokenStream

The node bag and the entry that fills it.

Trait Implementations§

Source§

impl<'a> Clone for LaunchEntry<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for LaunchEntry<'a>

Source§

impl<'a> Debug for LaunchEntry<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !Send for LaunchEntry<'a>

§

impl<'a> !Sync for LaunchEntry<'a>

§

impl<'a> Freeze for LaunchEntry<'a>

§

impl<'a> RefUnwindSafe for LaunchEntry<'a>

§

impl<'a> Unpin for LaunchEntry<'a>

§

impl<'a> UnsafeUnpin for LaunchEntry<'a>

§

impl<'a> UnwindSafe for LaunchEntry<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.