/external/rust/crates/csv/src/ |
D | byte_record.rs | 34 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 …]
|
D | writer.rs | 12 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 …]
|
D | reader.rs | 10 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 …]
|
D | string_record.rs | 10 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
|
D | error.rs | 6 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
|
D | deserializer.rs | 15 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()
|
D | lib.rs | 156 pub use crate::byte_record::{ByteRecord, ByteRecordIter, Position};
|
/external/rust/crates/csv/benches/ |
D | bench.rs | 11 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/ |
D | tutorial-perf-alloc-03.rs | 7 let mut record = csv::ByteRecord::new(); in run()
|
D | tutorial-perf-serde-03.rs | 21 let mut raw_record = csv::ByteRecord::new(); in run()
|
/external/rust/crates/rusqlite/src/vtab/ |
D | csvtab.rs | 221 let mut record = csv::ByteRecord::new(); in connect()
|