pub struct LeanBlock {
pub attrs: Vec<Attribute>,
pub imports: Vec<String>,
pub uses: Vec<Path>,
pub vis: Visibility,
pub name: Ident,
pub source: LitStr,
}Expand description
A lean! block:
/// documentation
#[lean(imports = ["Std.Data.HashMap"], uses = [crate::geometry::shapes])]
pub mod name;
r#"Lean source"#Fields§
§attrs: Vec<Attribute>The attributes other than #[lean(...)] (documentation), put on the module.
imports: Vec<String>§uses: Vec<Path>§vis: Visibility§name: Ident§source: LitStrTrait Implementations§
Auto Trait Implementations§
impl !Send for LeanBlock
impl !Sync for LeanBlock
impl Forget for LeanBlock
impl Freeze for LeanBlock
impl Move for LeanBlock
impl RefUnwindSafe for LeanBlock
impl Unpin for LeanBlock
impl UnsafeUnpin for LeanBlock
impl UnwindSafe for LeanBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more