Struct nu_protocol::hir::Block[][src]

pub struct Block {
    pub params: Signature,
    pub block: Vec<Group>,
    pub definitions: IndexMap<String, Block>,
    pub span: Span,
}

Fields

params: Signatureblock: Vec<Group>definitions: IndexMap<String, Block>span: Span

Implementations

impl Block[src]

pub fn new(
    params: Signature,
    block: Vec<Group>,
    definitions: IndexMap<String, Block>,
    span: Span
) -> Block
[src]

pub fn basic() -> Block[src]

pub fn push(&mut self, group: Group)[src]

pub fn set_redirect(&mut self, external_redirection: ExternalRedirection)[src]

pub fn has_it_usage(&self) -> bool[src]

pub fn infer_params(&mut self)[src]

pub fn get_free_variables(
    &self,
    known_variables: &mut Vec<String>
) -> Vec<String>
[src]

Trait Implementations

impl Clone for Block[src]

impl Debug for Block[src]

impl<'de> Deserialize<'de> for Block[src]

impl Eq for Block[src]

impl Hash for Block[src]

impl Ord for Block[src]

fn cmp(&self, other: &Block) -> Ordering[src]

Compare two dictionaries for ordering

impl PartialEq<Block> for Block[src]

impl PartialOrd<Block> for Block[src]

fn partial_cmp(&self, other: &Block) -> Option<Ordering>[src]

Compare two dictionaries for sort ordering

impl Serialize for Block[src]

impl StructuralEq for Block[src]

impl StructuralPartialEq for Block[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SpannedItem for T[src]

impl<T> TaggedItem for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.