fn clear(&mut self) -> Result<(), crate::StackError> {
        use num_traits::identities::zero;
        self.x = zero();
        self.y = zero();
        self.z = zero();
        self.t = zero();
        Ok(())
    }
/// Set all registers to zero.
///
/// # Example
///
/// ```
/// use smsflib::prelude::*;
///
/// let mut stack = ClassicStack::<u32>::new(1, 2, 3, 4);
/// let res = stack.clear();
///
/// assert_eq!(res, Ok(()));
///
/// assert_eq!(*stack.x(), 0);
/// assert_eq!(*stack.y(), 0);
/// assert_eq!(*stack.z(), 0);
/// assert_eq!(*stack.t(), 0);
/// ```
Set all registers to zero.
Set all registers to zero .
fn clear(&mut self) -> Result<(), crate::StackError> {
        use num_traits::identities::zero;
        self.x = zero();
        self.y = zero();
        self.z = zero();
        self.t = zero();
        Ok(())
    }
fn clear ( & mut self ) -> Result < ( ) , crate :: StackError > { use num_traits :: identities :: zero ; self . x = zero ( ) ; self . y = zero ( ) ; self . z = zero ( ) ; self . t = zero ( ) ; Ok ( ( ) ) }
Set all registers to zero.
Set all registers to zero .
&mut self
example
```
use smsflib::prelude::*.

let mut stack = ClassicStack::::new(1, 2, 3, 4);
let res = stack.clear().




` ` ` use smsflib :: prelude :: * . let mut stack = ClassicStack :::: new ( 1 2 3 4 ) ; let res = stack . clear () .