enum CodeBlockAttribute {
Rust,
NotRust,
}
Expand description
Enum indicating if the code block contains rust based on attributes
Variants§
Implementations§
source§impl CodeBlockAttribute
impl CodeBlockAttribute
sourcefn new(attributes: &str) -> CodeBlockAttribute
fn new(attributes: &str) -> CodeBlockAttribute
Parse comma separated attributes list. Return rust only if all attributes are valid rust attributes See https://doc.rust-lang.org/rustdoc/print.html#attributes
Auto Trait Implementations§
impl RefUnwindSafe for CodeBlockAttribute
impl Send for CodeBlockAttribute
impl Sync for CodeBlockAttribute
impl Unpin for CodeBlockAttribute
impl UnwindSafe for CodeBlockAttribute
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Rust
: 0 bytesNotRust
: 0 bytes