pub struct TestSquareInt {
pub x: i32,
}
Expand description
Returns the squared received number; for testing only
Fields§
§x: i32
Number to square
Trait Implementations§
Source§impl Clone for TestSquareInt
impl Clone for TestSquareInt
Source§fn clone(&self) -> TestSquareInt
fn clone(&self) -> TestSquareInt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TestSquareInt
impl Debug for TestSquareInt
Source§impl<'de> Deserialize<'de> for TestSquareInt
impl<'de> Deserialize<'de> for TestSquareInt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for TestSquareInt
impl Method for TestSquareInt
Auto Trait Implementations§
impl Freeze for TestSquareInt
impl RefUnwindSafe for TestSquareInt
impl Send for TestSquareInt
impl Sync for TestSquareInt
impl Unpin for TestSquareInt
impl UnwindSafe for TestSquareInt
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