pub enum BlockTag {
Txt,
Img,
Tdo,
Fnc,
Api,
Lfc,
Chr,
Emo,
Enc,
Orc,
}Expand description
Identifies a block type. The index (0..10) doubles as the plane-15 sub-range selector in the Unicode encoding, so the order is part of the wire format and must never change.
Variants§
Txt
Free text / spec sheet.
Img
Sprite atlas (RGBA8 pixels).
Tdo
Task list with statuses + dependencies.
Fnc
Callable function definitions.
Api
HTTP endpoint descriptions.
Lfc
Agent lifecycle state machine.
Chr
Character traits + backstory.
Emo
Emotion states with intensities.
Enc
Encryption-at-rest directive.
Orc
Orchestration directives for runtimes.
Implementations§
Source§impl BlockTag
impl BlockTag
Sourcepub fn from_index(index: u8) -> Option<Self>
pub fn from_index(index: u8) -> Option<Self>
Inverse of BlockTag::index.
Sourcepub fn from_tag_bytes(tag: &[u8; 3]) -> Option<Self>
pub fn from_tag_bytes(tag: &[u8; 3]) -> Option<Self>
Inverse of BlockTag::tag_bytes.
Trait Implementations§
impl Copy for BlockTag
Source§impl<'de> Deserialize<'de> for BlockTag
impl<'de> Deserialize<'de> for BlockTag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockTag
impl StructuralPartialEq for BlockTag
Auto Trait Implementations§
impl Freeze for BlockTag
impl RefUnwindSafe for BlockTag
impl Send for BlockTag
impl Sync for BlockTag
impl Unpin for BlockTag
impl UnsafeUnpin for BlockTag
impl UnwindSafe for BlockTag
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