nanondef 0.0.1

A no-std, no-alloc, minimal NDEF encoding and decoding library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::tag::{message::DecodeMessage, BlockTag};
use crate::Range;

#[derive(Debug, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum Block<'b, M: DecodeMessage<'b>> {
    Null,
    Message(M, Range),
    Proprietary(&'b [u8], Range),
    Terminator(usize),
    Other(BlockTag, &'b [u8], Range),
}