Home
last modified time | relevance | path

Searched refs:ByteRecord (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/csv/src/
Dbyte_record.rs34 pub struct ByteRecord(Box<ByteRecordInner>); struct
36 impl PartialEq for ByteRecord { implementation
37 fn eq(&self, other: &ByteRecord) -> bool { in eq()
45 impl<T: AsRef<[u8]>> PartialEq<Vec<T>> for ByteRecord { implementation
51 impl<'a, T: AsRef<[u8]>> PartialEq<Vec<T>> for &'a ByteRecord { implementation
57 impl<T: AsRef<[u8]>> PartialEq<[T]> for ByteRecord { implementation
63 impl<'a, T: AsRef<[u8]>> PartialEq<[T]> for &'a ByteRecord { implementation
69 impl fmt::Debug for ByteRecord { implementation
95 impl Default for ByteRecord { implementation
97 fn default() -> ByteRecord { in default()
[all …]
Dwriter.rs12 use crate::byte_record::ByteRecord;
935 pub fn write_byte_record(&mut self, record: &ByteRecord) -> Result<()> { in write_byte_record()
1191 use crate::byte_record::ByteRecord;
1220 wtr.write_record(&ByteRecord::from(vec!["a", "b", "c"])).unwrap(); in one_byte_record()
1228 wtr.write_byte_record(&ByteRecord::from(vec!["a", "b", "c"])).unwrap(); in raw_one_byte_record()
1244 wtr.write_byte_record(&ByteRecord::from(vec![""])).unwrap(); in raw_one_empty_record()
1261 wtr.write_byte_record(&ByteRecord::from(vec![""])).unwrap(); in raw_two_empty_records()
1262 wtr.write_byte_record(&ByteRecord::from(vec![""])).unwrap(); in raw_two_empty_records()
1270 wtr.write_record(&ByteRecord::from(vec!["a", "b", "c"])).unwrap(); in unequal_records_bad()
1271 let err = wtr.write_record(&ByteRecord::from(vec!["a"])).unwrap_err(); in unequal_records_bad()
[all …]
Dreader.rs10 use crate::byte_record::{ByteRecord, Position};
784 byte_record: ByteRecord,
1331 let mut record = ByteRecord::new(); in headers()
1398 pub fn byte_headers(&mut self) -> Result<&ByteRecord> { in byte_headers() argument
1400 let mut record = ByteRecord::new(); in byte_headers()
1465 pub fn set_byte_headers(&mut self, headers: ByteRecord) { in set_byte_headers() argument
1471 headers: result::Result<StringRecord, ByteRecord>, in set_headers_impl() argument
1586 record: &mut ByteRecord, in read_byte_record() argument
1626 record: &mut ByteRecord, in read_byte_record_impl() argument
1890 fn add_record(&mut self, record: &ByteRecord) -> Result<()> { in add_record()
[all …]
Dstring_record.rs10 use crate::byte_record::{ByteRecord, ByteRecordIter, Position};
36 pub struct StringRecord(ByteRecord);
107 StringRecord(ByteRecord::new()) in new()
117 StringRecord(ByteRecord::with_capacity(buffer, fields)) in with_capacity()
155 record: ByteRecord, in from_byte_record() argument
193 pub fn from_byte_record_lossy(record: ByteRecord) -> StringRecord { in from_byte_record_lossy()
577 pub fn as_byte_record(&self) -> &ByteRecord { in as_byte_record() argument
609 pub fn into_byte_record(self) -> ByteRecord { in into_byte_record() argument
Derror.rs6 use crate::byte_record::{ByteRecord, Position};
224 record: ByteRecord,
230 pub(crate) fn new(rec: ByteRecord, err: Utf8Error) -> FromUtf8Error { in new() argument
235 pub fn into_byte_record(self) -> ByteRecord { in into_byte_record() argument
Ddeserializer.rs15 use crate::byte_record::{ByteRecord, ByteRecordIter};
39 record: &'de ByteRecord, in deserialize_byte_record() argument
40 headers: Option<&'de ByteRecord>, in deserialize_byte_record() argument
808 use crate::byte_record::ByteRecord;
1186 let headers = ByteRecord::from(vec![b"a", b"\xFF", b"c"]); in borrowed_map_bytes()
1187 let record = ByteRecord::from(vec!["aardvark", "bee", "cat"]); in borrowed_map_bytes()
1239 let headers = ByteRecord::from(vec![b"h1", b"h2", b"h3"]); in partially_invalid_utf8()
1241 ByteRecord::from(vec![b(b"baz"), b(b"foo\xFFbar"), b(b"quux")]); in partially_invalid_utf8()
Dlib.rs156 pub use crate::byte_record::{ByteRecord, ByteRecordIter, Position};
/external/rust/crates/csv/benches/
Dbench.rs11 ByteRecord, Reader, ReaderBuilder, StringRecord, Trim, Writer,
247 let mut rec = ByteRecord::new();
468 let mut rec = ByteRecord::new(); in count_deserialize_owned_bytes()
507 let mut rec = ByteRecord::new(); in count_read_bytes()
523 fn collect_records(data: &[u8]) -> Vec<ByteRecord> { in collect_records() argument
/external/rust/crates/csv/examples/
Dtutorial-perf-alloc-03.rs7 let mut record = csv::ByteRecord::new(); in run()
Dtutorial-perf-serde-03.rs21 let mut raw_record = csv::ByteRecord::new(); in run()
/external/rust/crates/rusqlite/src/vtab/
Dcsvtab.rs221 let mut record = csv::ByteRecord::new(); in connect()