Skip to main content

SourceNode

Trait SourceNode 

Source
pub trait SourceNode {
    // Provided methods
    fn select_source(
        &self,
        source: Option<&Option<BoxedValue>>,
        target: &Ref<FerroObject>,
        _anchor: Option<&Ref<FerroObject>>,
    ) -> Option<BoxedValue> { ... }
    fn should_log_errors(
        &self,
        state: &NodeState,
        _target: &FerroObject,
    ) -> bool { ... }
}
Expand description

A node that selects the source of a binding expression.

Provided Methods§

Source

fn select_source( &self, source: Option<&Option<BoxedValue>>, target: &Ref<FerroObject>, _anchor: Option<&Ref<FerroObject>>, ) -> Option<BoxedValue>

Selects the source for the binding expression based on the binding source (None when no source was given), target and anchor.

Source

fn should_log_errors(&self, state: &NodeState, _target: &FerroObject) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§