pub struct PrintResult {
pub value: WireValue,
pub type_info: TypeInfo,
pub type_registry: TypeRegistry,
}Expand description
Represents a result intended for printing to the terminal
Fields§
§value: WireValueThe original value
type_info: TypeInfoType information
type_registry: TypeRegistryAvailable metadata/formats
Implementations§
Source§impl PrintResult
impl PrintResult
Sourcepub fn new(
value: WireValue,
type_info: TypeInfo,
type_registry: TypeRegistry,
) -> Self
pub fn new( value: WireValue, type_info: TypeInfo, type_registry: TypeRegistry, ) -> Self
Create a new print result
Sourcepub fn from_number(n: f64) -> Self
pub fn from_number(n: f64) -> Self
Create from a number with default formatting
Trait Implementations§
Source§impl Clone for PrintResult
impl Clone for PrintResult
Source§fn clone(&self) -> PrintResult
fn clone(&self) -> PrintResult
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 PrintResult
impl Debug for PrintResult
Source§impl<'de> Deserialize<'de> for PrintResult
impl<'de> Deserialize<'de> for PrintResult
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 PartialEq for PrintResult
impl PartialEq for PrintResult
Source§impl Serialize for PrintResult
impl Serialize for PrintResult
impl StructuralPartialEq for PrintResult
Auto Trait Implementations§
impl Freeze for PrintResult
impl RefUnwindSafe for PrintResult
impl Send for PrintResult
impl Sync for PrintResult
impl Unpin for PrintResult
impl UnsafeUnpin for PrintResult
impl UnwindSafe for PrintResult
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