Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Items

This section is a work-in-progress experiment about making the book executable.

Syntax
Item: attrs=OuterAttribute* visibility=Visibility? kind=ItemKind
    => Item { attrs, visibility, kind }
ItemKind: function=Function => ItemKind::Function(function)

#![allow(unused)]
fn main() {
pub struct Item {
    pub attrs: Vec<OuterAttribute>,
    pub visibility: Option<Visibility>,
    pub kind: ItemKind,
}

pub enum ItemKind {
    Function(Function),
}

}

Submodules

#![allow(unused)]
fn main() {
#[path = "items/functions.md.rs"]
pub mod functions;

pub use functions::*;
}