MCPcopy Create free account
hub / github.com/apache/arrow-rs / fmt

Method fmt

arrow-avro/src/codec.rs:132–144  ·  view source on GitHub ↗
(&self, formatter: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

130
131impl Display for Promotion {
132 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
133 match self {
134 Self::Direct => write!(formatter, "Direct"),
135 Self::IntToLong => write!(formatter, "Int->Long"),
136 Self::IntToFloat => write!(formatter, "Int->Float"),
137 Self::IntToDouble => write!(formatter, "Int->Double"),
138 Self::LongToFloat => write!(formatter, "Long->Float"),
139 Self::LongToDouble => write!(formatter, "Long->Double"),
140 Self::FloatToDouble => write!(formatter, "Float->Double"),
141 Self::StringToBytes => write!(formatter, "String->Bytes"),
142 Self::BytesToString => write!(formatter, "Bytes->String"),
143 }
144 }
145}
146
147/// Information required to resolve a writer union against a reader union (or single type).

Callers

nothing calls this directly

Calls 2

write_strMethod · 0.80
as_strMethod · 0.45

Tested by

no test coverage detected