pub struct XFState { /* private fields */ }Implementations§
Source§impl XFState
impl XFState
Sourcepub fn new() -> XFState
pub fn new() -> XFState
Constructs a new XFState
§Example
use xflow::xfstate::{XFState};
let xfstate = XFState::new();
println!("State has {} keys", xfstate.len());pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, name: &str) -> Option<&XFlowVariable>
pub fn has(&self, name: &str) -> bool
pub fn add(&mut self, xvar: &XFlowVariable)
pub fn remove(&mut self, name: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XFState
impl RefUnwindSafe for XFState
impl Send for XFState
impl Sync for XFState
impl Unpin for XFState
impl UnwindSafe for XFState
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