Edge

Struct Edge 

Source
pub struct Edge {
    pub pool: Rc<RefCell<Pool>>,
    pub inputs: Vec<NodeIndex>,
    pub outputs: Vec<NodeIndex>,
    pub env: Rc<RefCell<BindingEnv>>,
    pub mark: EdgeVisitMark,
    pub outputs_ready: bool,
    pub deps_missing: bool,
    pub implicit_deps: usize,
    pub order_only_deps: usize,
    pub implicit_outs: usize,
    /* private fields */
}
Expand description

An edge in the dependency graph; links between Nodes using Rules.

Fields§

§pool: Rc<RefCell<Pool>>§inputs: Vec<NodeIndex>§outputs: Vec<NodeIndex>§env: Rc<RefCell<BindingEnv>>§mark: EdgeVisitMark§outputs_ready: bool§deps_missing: bool§implicit_deps: usize§order_only_deps: usize§implicit_outs: usize

Implementations§

Source§

impl Edge

Source

pub fn new( rule: Rc<Rule>, pool: Rc<RefCell<Pool>>, env: Rc<RefCell<BindingEnv>>, ) -> Self

Source

pub fn rule(&self) -> &Rc<Rule>

Source

pub fn pool(&self) -> &Rc<RefCell<Pool>>

Source

pub fn weight(&self) -> usize

Source

pub fn outputs_ready(&self) -> bool

Source

pub fn explicit_deps_range(&self) -> Range<usize>

Source

pub fn implicit_deps_range(&self) -> Range<usize>

Source

pub fn non_order_only_deps_range(&self) -> Range<usize>

Source

pub fn order_only_deps_range(&self) -> Range<usize>

Source

pub fn explicit_outs_range(&self) -> Range<usize>

Source

pub fn implicit_outs_range(&self) -> Range<usize>

Source

pub fn get_binding(&self, node_state: &NodeState, key: &[u8]) -> Cow<'_, [u8]>

Returns the shell-escaped value of |key|.

Source

pub fn get_binding_bool(&self, node_state: &NodeState, key: &[u8]) -> bool

Source

pub fn get_unescaped_depfile(&self, node_state: &NodeState) -> Cow<'_, [u8]>

Like GetBinding(“depfile”), but without shell escaping.

Source

pub fn get_unescaped_rspfile(&self, node_state: &NodeState) -> Cow<'_, [u8]>

Like GetBinding(“rspfile”), but without shell escaping.

Source

pub fn is_phony(&self) -> bool

Source

pub fn use_console(&self) -> bool

Source

pub fn evaluate_command(&self, node_state: &NodeState) -> Vec<u8>

Expand all variables in a command and return it as a string. If incl_rsp_file is enabled, the string will also contain the full contents of a response file (if applicable)

Source

pub fn evaluate_command_with_rsp_file( &self, node_state: &NodeState, incl_rsp_file: bool, ) -> Vec<u8>

Source

pub fn maybe_phonycycle_diagnostic(&self) -> bool

Source

pub fn all_inputs_ready(&self, state: &State) -> bool

Return true if all inputs’ in-edges are ready.

Source

pub fn dump(&self)

Auto Trait Implementations§

§

impl Freeze for Edge

§

impl !RefUnwindSafe for Edge

§

impl !Send for Edge

§

impl !Sync for Edge

§

impl Unpin for Edge

§

impl !UnwindSafe for Edge

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.