[−][src]Enum cpclib_basic::tokens::BasicToken
Represents any kind of token
Variants
SimpleToken(BasicTokenNoPrefix)Simple tokens.
PrefixedToken(BasicTokenPrefixed)Tokens prefixed by 0xff
Rsx(String)Encode a RSX call
Variable(String, BasicValue)Encode a variable set
Constant(BasicTokenNoPrefix, BasicValue)Encode a constant. The first field can only take ValueIntegerDecimal8bits, ValueIntegerDecimal16bits, ValueIntegerBinary16bits, ValueIntegerHexadecimal16bits
Comment(BasicTokenNoPrefix, Vec<u8>)Encode a comment
Implementations
impl BasicToken[src]
pub fn as_bytes(&self) -> Vec<u8>[src]
pub fn rsx_encoded_name(&self) -> Option<Vec<u8>>[src]
Returns the encoded version of the rsx name (bit 7 to 1 of last char)
pub fn variable_encoded_name(&self) -> Option<Vec<u8>>[src]
Trait Implementations
impl Clone for BasicToken[src]
fn clone(&self) -> BasicToken[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for BasicToken[src]
impl Display for BasicToken[src]
impl PartialEq<BasicToken> for BasicToken[src]
fn eq(&self, other: &BasicToken) -> bool[src]
fn ne(&self, other: &BasicToken) -> bool[src]
impl StructuralPartialEq for BasicToken[src]
Auto Trait Implementations
impl RefUnwindSafe for BasicToken
impl Send for BasicToken
impl Sync for BasicToken
impl Unpin for BasicToken
impl UnwindSafe for BasicToken
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,