[−][src]Enum cddl::token::Token
Token which represents a valids CDDL character or sequence
Variants
ILLEGAL(String)Illegal sequence of characters
End of file
IDENT((String, Option<SocketPlug>))Identifier with optional SocketPlug
VALUE(Value)Value
CBOR tag '#'
Assignment operator '='
Optional occurrence indicator '?'
Zero or more occurrence indicator '*'
One or more occurrence indicator '+'
Unwrap operator '~'
Comma ','
Colon ':'
COMMENT(String)Comment text
Type choice indicator '/'
Group choice indicator '//'
Type choice alternative '/='
Group choice alternative '//='
Arrow map '=>'
Cut '^'
RANGEOP(bool)Range operator. Inclusive '..' if true, otherwise exclusive '...'s
RANGE((RangeValue, RangeValue, bool))Range tuple with lower bound, upper bound, and bool indicating whether or not the range is inclusive
Left opening parend
Right closing parend
Left opening brace
Right closing brace
Left opening bracket
Right closing bracket
Left opening angle bracket
Right closing angle bracket
.size control operator
.bits control operator
.regexp control operator
.cbor control operator
.cborseq control operator
.within control operator
.and control operator
.lt control operator
.le control operator
.gt control operator
.ge control operator
.eq control operator
.ne control operator
.default control operator
.pcre control operator Proposed control extension to support Perl-Compatible Regular Expressions (PCREs). See https://tools.ietf.org/html/rfc8610#section-3.8.3.2s
group to choice enumeration '&'
false
true
bool
nil
null
uint
nint
int
float16
float32
float64
float16-32
float32-64
float
bstr
tstr
any
bytes
text
tdate
time
number
biguint
bignint
bigint
integer
unsigned
decfrac
bigfloat
eb64url
eb64legacy
eb16k
encoded-cbor
uri
b64url
b64legacy
regexp
mime-message
cbor-any
undefined
Methods
impl Token[src]
pub fn in_standard_prelude(&self) -> Option<&'static str>[src]
Returns optional string literal of token in standard prelude
Trait Implementations
impl Debug for Token[src]
impl Display for Token[src]
impl PartialEq<Token> for Token[src]
impl StructuralPartialEq for Token[src]
impl TryFrom<Token> for RangeValue[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnwindSafe for Token
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,