pub struct Xstr { /* private fields */ }
Expand description
A Haystack XStr.
Implementations§
Source§impl Xstr
impl Xstr
Sourcepub fn new(type_name: String, value: String) -> Xstr
pub fn new(type_name: String, value: String) -> Xstr
Create a new Xstr
.
§Example
use raystack_core::Xstr;
let my_xstr = Xstr::new("Color".to_string(), "red".to_string());
pub fn type_name(&self) -> &str
pub fn value(&self) -> &str
Sourcepub fn to_axon_code(&self) -> String
pub fn to_axon_code(&self) -> String
Return this Xstr
as Axon code.
Trait Implementations§
impl Eq for Xstr
impl StructuralPartialEq for Xstr
Auto Trait Implementations§
impl Freeze for Xstr
impl RefUnwindSafe for Xstr
impl Send for Xstr
impl Sync for Xstr
impl Unpin for Xstr
impl UnwindSafe for Xstr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.