Crate smo

Source

Re-exports§

pub use calamine::DataType::Bool as ExBool;
pub use calamine::DataType::DateTime as ExDateTime;
pub use calamine::DataType::Empty as ExEmpty;
pub use calamine::DataType::Error as ExError;
pub use calamine::DataType::Float as ExFloat;
pub use calamine::DataType::Int as ExInt;
pub use calamine::DataType::String as ExString;
pub use plotly::common::Mode::*;

Modules§

binary_heap
A priority queue implemented with a binary heap.
btree_map
An ordered map based on a B-Tree.
btree_set
An ordered set based on a B-Tree.
color
This module provides several user interfaces for describing a color to be used throughout the rest of the library. The easiest way of describing a colour is to use a &str or String, which is simply serialized as-is and passed on to the underlying plotly.js library. plotly.js supports CSS color formats, and will fallback to some default color if the color string is malformed.
common
configuration
error
When serializing or deserializing JSON goes wrong.
format
Formatting (and parsing) utilities for date and time.
hash_map
A hash map implemented with quadratic probing and SIMD lookup.
hash_set
A hash set implemented as a HashMap where the value is ().
io
Traits, helpers, and type definitions for core I/O functionality.
layout
linked_list
A doubly-linked list with owned nodes.
map
A map of String to serde_json::Value.
naive
Date and time types unconcerned with timezones.
offset
The time zone, which calculates offsets from the local time to UTC.
plot
prelude
A convenience module appropriate for glob imports (use chrono::prelude::*;).
round
Functionality for rounding or truncating a DateTime by a TimeDelta.
serde
Serialization/Deserialization with serde
traces
The various supported traces
value
The Value enum, a loosely typed way of representing any valid JSON value.
vba
Parse vbaProject.bin file
vec_deque
A double-ended queue (deque) implemented with a growable ring buffer.

Macros§

forward_to_deserialize_any
Helper macro when implementing the Deserializer part of a new data format for Serde.
json
Construct a serde_json::Value from a JSON literal.

Structs§

Arguments
This structure represents a safely precompiled version of a format string and its arguments. This cannot be generated at runtime because it cannot safely be done, so no constructors are given and the fields are private to prevent modification.
BTreeMap
An ordered map based on a B-Tree.
BTreeSet
An ordered set based on a B-Tree.
Bar
Construct a bar trace.
BinaryHeap
A priority queue implemented with a binary heap.
BoxPlot
Construct a box trace.
BuildHasherDefault
Used to create a default BuildHasher instance for types that implement Hasher and Default.
Candlestick
Construct a candlestick trace.
Cell
A struct to hold cell position and value
Cells
A struct to iterate over all cells
Chain
An iterator that links two iterators together, in a chain.
Cloned
An iterator that clones the elements of an underlying iterator.
ColorBar
ColorScaleElement
Configuration
Contour
Construct a contour trace.
Copied
An iterator that copies the elements of an underlying iterator.
Cycle
An iterator that repeats endlessly.
DateDeprecated
ISO 8601 calendar date with time zone.
DateTime
ISO 8601 combined date and time with time zone.
Days
A duration in calendar days.
DebugList
A struct to help with fmt::Debug implementations.
DebugMap
A struct to help with fmt::Debug implementations.
DebugSet
A struct to help with fmt::Debug implementations.
DebugStruct
A struct to help with fmt::Debug implementations.
DebugTuple
A struct to help with fmt::Debug implementations.
DefaultHasher
The default Hasher used by RandomState.
Domain
Empty
An iterator that yields nothing.
Enumerate
An iterator that yields the current count and the element during iteration.
ErrorData
Filter
An iterator that filters the elements of iter with predicate.
FilterMap
An iterator that uses f to both filter and map elements from iter.
FixedOffset
The time zone with fixed offset, from UTC-23:59:59 to UTC+23:59:59.
FlatMap
An iterator that maps each element to an iterator, and yields the elements of the produced iterators.
Flatten
An iterator that flattens one level of nesting in an iterator of things that can be turned into iterators.
Font
Formatter
Configuration for formatting.
Fuse
An iterator that yields None forever after the underlying iterator yields None once.
Gradient
Grid
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
HashSet
A hash set implemented as a HashMap where the value is ().
HeatMap
Construct a heat map trace.
Histogram
Construct a histogram trace.
Image
Construct an image trace.
Inspect
An iterator that calls a function with a reference to each element before yielding it.
IsoWeek
ISO 8601 week.
Label
Layout
LegendGroupTitle
Line
LinkedList
A doubly-linked list with owned nodes.
Local
The local timescale.
MapWhile
An iterator that only accepts elements while predicate returns Some(_).
Marker
Mesh3D
Metadata
Common file metadata
Months
A duration in calendar months
NaiveDate
ISO 8601 calendar date without timezone. Allows for every proleptic Gregorian date from Jan 1, 262145 BCE to Dec 31, 262143 CE. Also supports the conversion from ISO 8601 ordinal and week date.
NaiveDateTime
ISO 8601 combined date and time without timezone.
NaiveTime
ISO 8601 time without timezone. Allows for the nanosecond precision and optional leap second representation.
NaiveWeek
A week represented by a NaiveDate and a Weekday which is the first day of the week.
Number
Represents a JSON number, whether integer or floating point.
Ods
An OpenDocument Spreadsheet document parser
Ohlc
Construct an OHLC trace.
Once
An iterator that yields an element exactly once.
OnceWith
An iterator that yields a single element of type A by applying the provided closure F: FnOnce() -> A.
OutOfRange
Out of range error type used in various converting APIs
OutOfRangeError
Represents error when converting TimeDelta to/from a standard library implementation
Pad
ParseError
An error from the parse function.
ParseMonthError
An error resulting from reading <Month> value with FromStr.
ParseWeekdayError
An error resulting from reading Weekday value with FromStr.
Peekable
An iterator with a peek() that returns an optional reference to the next element.
Plot
Plot is a container for structs that implement the Trace trait. Optionally a Layout can also be specified. Its function is to serialize Traces and the Layout in html format and display and/or persist the resulting plot.
RandomState
RandomState is the default state for HashMap types.
Range
A struct which represents a squared selection of cells
RangeDeserializer
A configured Range deserializer.
RangeDeserializerBuilder
Builds a Range deserializer with some configuration options.
Repeat
An iterator that repeats an element endlessly.
RepeatN
An iterator that repeats an element an exact number of times.
RepeatWith
An iterator that repeats elements of type A endlessly by applying the provided closure F: FnMut() -> A.
Rev
A double-ended iterator with the direction inverted.
Rows
An iterator to read Range struct row by row
Sankey
Construct a Sankey trace.
Scan
An iterator to maintain state while iterating another iterator.
Scatter
Construct a scatter trace.
Scatter3D
Construct a scatter3D trace.
ScatterMapbox
ScatterPolar
Construct a polar scatter trace.
Sheet
Metadata of sheet
SipHasherDeprecated
An implementation of SipHash 2-4.
Skip
An iterator that skips over n elements of iter.
SkipWhile
An iterator that rejects elements while predicate returns true.
StepBy
An iterator for stepping iterators by a custom amount.
StreamDeserializer
Iterator that deserializes a stream into multiple JSON values.
Successors
A new iterator where each successive item is computed based on the preceding one.
Surface
Construct a surface trace.
Table
Struct with the key elements of a table
Take
An iterator that only iterates over the first n iterations of iter.
TakeWhile
An iterator that only accepts elements while predicate returns true.
TickFormatStop
TimeDelta
Time duration with nanosecond precision.
Title
TryReserveError
The error type for try_reserve methods.
UsedCells
A struct to iterate over used cells
Utc
The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
VecDeque
A double-ended queue implemented with a growable ring buffer.
Xls
A struct representing an old xls format file (CFB)
XlsOptions
Options to perform specialized parsing.
Xlsb
A Xlsb reader
Xlsx
A struct representing xml zipped excel file Xlsx, Xlsm, Xlam
Zip
An iterator that iterates two other iterators simultaneously.
ArrayChunksExperimental
An iterator over N elements of the iterator at a time.
ByRefSizedExperimental
Like Iterator::by_ref, but requiring Sized so it can forward generics.
FormattingOptionsExperimental
Options for formatting.
IntersperseExperimental
An iterator adapter that places a separator between all elements.
IntersperseWithExperimental
An iterator adapter that places a separator between all elements.
MapWindowsExperimental
An iterator over the mapped windows of another iterator.

Enums§

Alignment
Possible alignments returned by Formatter::align
Anchor
AxisSide
Bound
An endpoint of a range of keys.
Calendar
CellErrorType
An enum to represent all different errors that can appear as a value in a worksheet cell
ColorScale
ColorScalePalette
ConstrainText
DashType
DataType
An enum to represent all different data types that can appear as a value in a worksheet cell
DeError
A cell deserialization specific error enum
Dim
Direction
ErrorType
Ex
ExponentFormat
Fill
GradientType
HoverInfo
HoverOn
ImageFormat
Image format for static image export.
Infallible
The error type for errors that can never happen.
LineShape
LocalResult
Old name of MappedLocalTime. See that type for more documentation.
MarkerSymbol
Mode
Month
The month of the year.
OdsError
An enum for ods specific errors
Orientation
Out
PlotType
Position
Reference
RoundingError
An error from rounding by TimeDelta
SecondsFormat
Specific formatting options for seconds. This may be extended in the future, so exhaustive matching in external code is not recommended.
SheetType
Type of sheet
SheetVisible
Type of visible sheet
Sheets
A wrapper over all sheets when the file type is not known at static time
Show
Side
SizeMode
TextAnchor
TextPosition
ThicknessMode
TickMode
Ticks
Value
Represents any valid JSON value.
Visible
Weekday
The day of week.
XlsError
An enum to handle Xls specific errors
XlsbError
A Xlsb specific error
XlsxError
An enum for Xlsx specific errors
DebugAsHexExperimental
Specifies whether the Debug trait should use lower-/upper-case hexadecimal or normal integers.
SignExperimental
The signedness of a Formatter (or of a FormattingOptions).
TryReserveErrorKindExperimental
Details of the allocation that caused a TryReserveError

Constants§

MAX_DATEDeprecated
The maximum possible Date.
MAX_DATETIMEDeprecated
The maximum possible DateTime<Utc>.
MIN_DATEDeprecated
The minimum possible Date.
MIN_DATETIMEDeprecated
The minimum possible DateTime<Utc>.

Traits§

AsMut
Used to do a cheap mutable-to-mutable reference conversion.
AsRef
Used to do a cheap reference-to-reference conversion.
Binary
b formatting.
BuildHasher
A trait for creating instances of Hasher.
CellType
A trait to constrain cells
Datelike
The common set of methods for date component.
Debug
? formatting.
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Display
Format trait for an empty format, {}.
DoubleEndedIterator
An iterator able to yield elements from both ends.
DurationRound
Extension trait for rounding or truncating a DateTime by a TimeDelta.
ExactSizeIterator
An iterator that knows its exact length.
Extend
Extend a collection with the contents of an iterator.
From
Used to do value-to-value conversions while consuming the input value. It is the reciprocal of Into.
FromIterator
Conversion from an Iterator.
FromValue
FusedIterator
An iterator that always continues to yield None when exhausted.
Hash
A hashable type.
Hasher
A trait for hashing an arbitrary stream of bytes.
Into
A value-to-value conversion that consumes the input value. The opposite of From.
IntoIterator
Conversion into an Iterator.
Iterator
A trait for dealing with iterators.
LowerExp
e formatting.
LowerHex
x formatting.
Octal
o formatting.
Offset
The offset from the local time to UTC.
Pointer
p formatting.
Product
Trait to represent types that can be created by multiplying elements of an iterator.
Reader
A trait to share spreadsheets reader functions across different FileTypes
Relayout
Restyle
Serialize
A data structure that can be serialized into any data format supported by Serde.
SubsecRound
Extension trait for subsecond rounding or truncation to a maximum number of digits. Rounding can be used to decrease the error variance when serializing/persisting to lower precision. Truncation is the default behavior in Chrono display formatting. Either can be used to guarantee equality (e.g. for testing) when round-tripping through a lower precision format.
Sum
Trait to represent types that can be created by summing up an iterator.
TimeZone
The time zone.
Timelike
The common set of methods for time component.
ToCellDeserializer
Constructs a deserializer for a CellType.
ToValue
Trace
A struct that implements Trace can be serialized to json format that is understood by Plotly.js.
TryFrom
Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
TryInto
An attempted conversion that consumes self, which may or may not be expensive.
UpperExp
E formatting.
UpperHex
X formatting.
Write
A trait for writing or formatting into Unicode-accepting buffers or streams.
FloatToIntExperimental
Supporting trait for inherent methods of f32 and f64 such as to_int_unchecked. Typically doesn’t need to be used directly.
StepExperimental
Objects that have a notion of successor and predecessor operations.
TrustedLenExperimental
An iterator that reports an accurate length using size_hint.
TrustedStepExperimental
A type that upholds all invariants of Step.

Functions§

empty
Creates an iterator that yields nothing.
format
Takes an Arguments struct and returns the resulting formatted string.
from_reader
Deserialize an instance of type T from an I/O stream of JSON.
from_slice
Deserialize an instance of type T from bytes of JSON text.
from_str
Deserialize an instance of type T from a string of JSON text.
from_value
Interpret a serde_json::Value as an instance of type T.
identity
The identity function.
once
Creates an iterator that yields an element exactly once.
once_with
Creates an iterator that lazily generates a value exactly once by invoking the provided closure.
open_workbook
Convenient function to open a file with a BufReader
open_workbook_auto
Opens a workbook and define the file type at runtime.
open_workbook_auto_from_rs
Opens a workbook from the given bytes.
open_workbook_from_rs
Convenient function to open a file with a BufReader
repeat
Creates a new iterator that endlessly repeats a single element.
repeat_n
Creates a new iterator that repeats a single element a given number of times.
repeat_with
Creates a new iterator that repeats elements of type A endlessly by applying the provided closure, the repeater, F: FnMut() -> A.
successors
Creates a new iterator where each successive item is computed based on the preceding one.
to_string
Serialize the given data structure as a String of JSON.
to_string_pretty
Serialize the given data structure as a pretty-printed String of JSON.
to_value
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.
to_vec
Serialize the given data structure as a JSON byte vector.
to_vec_pretty
Serialize the given data structure as a pretty-printed JSON byte vector.
to_writer
Serialize the given data structure as JSON into the I/O stream.
to_writer_pretty
Serialize the given data structure as pretty-printed JSON into the I/O stream.
write
Takes an output stream and an Arguments struct that can be precompiled with the format_args! macro.
zip
Converts the arguments to iterators and zips them.
chainExperimental
Converts the arguments to iterators and links them together, in a chain.
from_coroutineExperimental
Creates a new iterator where each iteration calls the provided coroutine.

Type Aliases§

Duration
Alias of TimeDelta.
Fx
IoResult
A specialized Result type for I/O operations.
MappedLocalTime
The result of mapping a local time to a concrete instant in a given time zone.
ParseResult
Same as Result<T, ParseError>.

Derive Macros§

Debug
Derive macro generating an impl of the trait Debug.
Deserialize
Hash
Derive macro generating an impl of the trait Hash.
Serialize