pub enum InlineShape {
Show 21 variants
Nothing,
Int(i64),
BigInt(BigInt),
Decimal(BigDecimal),
Range(Box<InlineRange>),
Bytesize(u64),
String(String),
Line(String),
ColumnPath(ColumnPath),
GlobPattern(String),
Boolean(bool),
Date(DateTime<FixedOffset>),
Duration(BigInt),
FilePath(PathBuf),
Binary(usize),
Row(Row),
Table(Vec<InlineShape>),
Block,
Error,
BeginningOfStream,
EndOfStream,
}Variants§
Nothing
Int(i64)
BigInt(BigInt)
Decimal(BigDecimal)
Range(Box<InlineRange>)
Bytesize(u64)
String(String)
Line(String)
ColumnPath(ColumnPath)
GlobPattern(String)
Boolean(bool)
Date(DateTime<FixedOffset>)
Duration(BigInt)
FilePath(PathBuf)
Binary(usize)
Row(Row)
Table(Vec<InlineShape>)
Block
Error
BeginningOfStream
EndOfStream
Implementations§
Source§impl InlineShape
impl InlineShape
pub fn from_primitive(primitive: &Primitive) -> InlineShape
pub fn from_dictionary(dictionary: &Dictionary) -> InlineShape
pub fn from_table<'a>(table: impl IntoIterator<Item = &'a Value>) -> InlineShape
pub fn from_value<'a>(value: impl Into<&'a UntaggedValue>) -> InlineShape
pub fn format_for_column(self, column: impl Into<Column>) -> FormatInlineShape
pub fn format(self) -> FormatInlineShape
pub fn format_bytes( bytesize: u64, forced_format: Option<&str>, ) -> (DbgDocBldr, String)
pub fn render_doc(doc: &DebugDocBuilder) -> String
Trait Implementations§
Source§impl Clone for InlineShape
impl Clone for InlineShape
Source§fn clone(&self) -> InlineShape
fn clone(&self) -> InlineShape
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 InlineShape
impl Debug for InlineShape
Source§impl<'de> Deserialize<'de> for InlineShape
impl<'de> Deserialize<'de> for InlineShape
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 Hash for InlineShape
impl Hash for InlineShape
Source§impl Ord for InlineShape
impl Ord for InlineShape
Source§fn cmp(&self, other: &InlineShape) -> Ordering
fn cmp(&self, other: &InlineShape) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InlineShape
impl PartialEq for InlineShape
Source§impl PartialOrd for InlineShape
impl PartialOrd for InlineShape
Source§impl Serialize for InlineShape
impl Serialize for InlineShape
impl Eq for InlineShape
impl StructuralPartialEq for InlineShape
Auto Trait Implementations§
impl Freeze for InlineShape
impl RefUnwindSafe for InlineShape
impl Send for InlineShape
impl Sync for InlineShape
impl Unpin for InlineShape
impl UnwindSafe for InlineShape
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more