Enum trust_dns_proto::serialize::txt::Token
source · pub enum Token {
Blank,
List(Vec<String>),
CharData(String),
At,
Include,
Origin,
Ttl,
EOL,
}
Available on crate feature
text-parsing
only.Expand description
Tokens emited from each Lexer pass
Variants§
Blank
only if the first part of the line
List(Vec<String>)
(..) TODO, this is probably wrong, List maybe should just skip line endings
CharData(String)
[a-zA-Z, non-control utf8, ., -, 0-9]+, “.*”
At
@
Include
$INCLUDE
Origin
$ORIGIN
Ttl
$TTL
EOL
\n or \r\n
Trait Implementations§
source§impl PartialEq for Token
impl PartialEq for Token
impl Eq for Token
impl StructuralEq for Token
impl StructuralPartialEq for Token
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§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.