pub struct BlockTempl {
pub pub_token: Option<Pub>,
pub static_token: Option<Static>,
pub block_token: block,
pub name: Ident,
}Expand description
{{ [pub] [static] block <Ident> }}
Fields§
§pub_token: Option<Pub>§static_token: Option<Static>§block_token: block§name: IdentImplementations§
Source§impl BlockTempl
impl BlockTempl
pub fn peek(input: ParseStream<'_>) -> bool
Trait Implementations§
Source§impl Parse for BlockTempl
impl Parse for BlockTempl
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for BlockTempl
impl RefUnwindSafe for BlockTempl
impl !Send for BlockTempl
impl !Sync for BlockTempl
impl Unpin for BlockTempl
impl UnsafeUnpin for BlockTempl
impl UnwindSafe for BlockTempl
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