pub enum CrypticObject {
ConstantString(String),
ConstantInteger(i64),
ConstantFloat(f64),
ConstantBoolean(bool),
Null,
FloatingIdentifier(String),
IdentifiedObject(String, Box<CrypticObject>),
TaggedObject(Vec<CrypticObject>, Box<CrypticObject>),
ObjectBody(HashMap<String, CrypticObject>),
ObjectList(Vec<CrypticObject>),
}Expand description
An ambiguous object parsed from a crypt file.
This should only be used if the object you want parsed is expected to be multiple different types and should be handled manually. In any other case simply using that type is preferred.
Variants§
ConstantString(String)
ConstantInteger(i64)
ConstantFloat(f64)
ConstantBoolean(bool)
Null
FloatingIdentifier(String)
IdentifiedObject(String, Box<CrypticObject>)
TaggedObject(Vec<CrypticObject>, Box<CrypticObject>)
ObjectBody(HashMap<String, CrypticObject>)
ObjectList(Vec<CrypticObject>)
Trait Implementations§
Source§impl Clone for CrypticObject
impl Clone for CrypticObject
Source§fn clone(&self) -> CrypticObject
fn clone(&self) -> CrypticObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Cryptic for CrypticObject
impl Cryptic for CrypticObject
Source§fn cryptic(object: TracedObject) -> Result<Self, CryptError>
fn cryptic(object: TracedObject) -> Result<Self, CryptError>
Attempts to convert an AST from a crypt file into a desired type. Read more
Auto Trait Implementations§
impl Freeze for CrypticObject
impl RefUnwindSafe for CrypticObject
impl Send for CrypticObject
impl Sync for CrypticObject
impl Unpin for CrypticObject
impl UnsafeUnpin for CrypticObject
impl UnwindSafe for CrypticObject
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