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 LeanBlockwhere
*const u8 is !null: Freeze,
PhantomData<Attribute>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Path>: Freeze,
NonZero<u32>: Freeze,
PhantomData<Rc<()>>: Freeze,
*const Path is !null: Freeze,
*const str is !null: Freeze,
PhantomData<str>: Freeze,
*const LitRepr is !null: Freeze,
PhantomData<LitRepr>: Freeze,
impl Move for LeanBlock
impl RefUnwindSafe for LeanBlockwhere
NonZero<u32>: RefUnwindSafe,
ProcMacroAutoTraits: RefUnwindSafe,
RcVec<TokenTree>: RefUnwindSafe,
impl Unpin for LeanBlockwhere
*const u8 is !null: Unpin,
NonZero<u32>: Unpin,
Rc<()>: Unpin,
Box<str>: Unpin,
Box<Type>: Unpin,
Box<Expr>: Unpin,
Box<Pat>: Unpin,
Box<LitRepr>: Unpin,
Box<LitIntRepr>: Unpin,
Box<LitFloatRepr>: Unpin,
Rc<Vec<TokenTree>>: Unpin,
Box<FieldPat>: Unpin,
Box<Path>: Unpin,
Box<Lifetime>: Unpin,
Box<CapturedParam>: Unpin,
Box<TypeParamBound>: Unpin,
Box<GenericParam>: Unpin,
Box<WherePredicate>: Unpin,
Box<Field>: Unpin,
Box<Variant>: Unpin,
Box<FnArg>: Unpin,
Box<Block>: Unpin,
Box<UseTree>: Unpin,
Box<FieldValue>: Unpin,
Box<NamedArg>: Unpin,
Box<GenericArgument>: Unpin,
Box<PathSegment>: Unpin,
impl UnsafeUnpin for LeanBlockwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Path>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
PhantomData<Rc<()>>: UnsafeUnpin,
*const Path is !null: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
*const LitRepr is !null: UnsafeUnpin,
PhantomData<LitRepr>: UnsafeUnpin,
impl UnwindSafe for LeanBlockwhere
RawVecInner: UnwindSafe,
NonZero<u32>: UnwindSafe,
ProcMacroAutoTraits: UnwindSafe,
BoxRaw<str>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Pat>: UnwindSafe,
BoxRaw<LitRepr>: UnwindSafe,
BoxRaw<LitIntRepr>: UnwindSafe,
BoxRaw<LitFloatRepr>: UnwindSafe,
Rc<Vec<TokenTree>>: UnwindSafe,
BoxRaw<FieldPat>: UnwindSafe,
BoxRaw<Path>: UnwindSafe,
BoxRaw<Lifetime>: UnwindSafe,
BoxRaw<CapturedParam>: UnwindSafe,
BoxRaw<TypeParamBound>: UnwindSafe,
BoxRaw<GenericParam>: UnwindSafe,
BoxRaw<WherePredicate>: UnwindSafe,
BoxRaw<Field>: UnwindSafe,
BoxRaw<Variant>: UnwindSafe,
BoxRaw<FnArg>: UnwindSafe,
BoxRaw<Block>: UnwindSafe,
BoxRaw<UseTree>: UnwindSafe,
BoxRaw<FieldValue>: UnwindSafe,
BoxRaw<NamedArg>: UnwindSafe,
BoxRaw<GenericArgument>: UnwindSafe,
BoxRaw<PathSegment>: UnwindSafe,
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