pub struct BlockAttributes {
pub author: Option<String>,
pub family: Option<String>,
pub name: Option<String>,
pub version: Option<u8>,
pub flags: Option<u16>,
}Expand description
Attributes that can be set on a block header.
Fields§
Author string (max 8 chars, padded with spaces).
family: Option<String>Family string (max 8 chars, padded with spaces).
name: Option<String>Header/name string (max 8 chars, padded with spaces).
version: Option<u8>Version (major.minor encoded as (major << 4) | minor).
flags: Option<u16>Block flags (overrides existing flags word).
Trait Implementations§
Source§impl Clone for BlockAttributes
impl Clone for BlockAttributes
Source§fn clone(&self) -> BlockAttributes
fn clone(&self) -> BlockAttributes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockAttributes
impl Debug for BlockAttributes
Source§impl Default for BlockAttributes
impl Default for BlockAttributes
Source§fn default() -> BlockAttributes
fn default() -> BlockAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockAttributes
impl RefUnwindSafe for BlockAttributes
impl Send for BlockAttributes
impl Sync for BlockAttributes
impl Unpin for BlockAttributes
impl UnsafeUnpin for BlockAttributes
impl UnwindSafe for BlockAttributes
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