pub struct Keys {
pub keys: Vec<Key>,
pub collating: Collating,
pub ascii: Collating,
pub strict: Option<Numproc>,
}Expand description
A sort’s keys, most significant first, and how their bytes are read.
Fields§
§keys: Vec<Key>§collating: CollatingThe order of CH keys.
ascii: CollatingThe order of AC keys.
strict: Option<Numproc>None reads decimal keys as DFSORT does; Some reads them as a COBOL program under this NUMPROC reads a signed item, refusing invalid data (ironwork’s sort-keys strict).
Implementations§
Source§impl Keys
impl Keys
Sourcepub fn new(keys: Vec<Key>, page: &CodePage) -> Self
pub fn new(keys: Vec<Key>, page: &CodePage) -> Self
CH keys in EBCDIC’s order, AC keys in ASCII’s by page, decimal keys as DFSORT reads them.
Sourcepub fn values(
&self,
record: &[u8],
index: usize,
) -> Result<Vec<KeyValue>, KeyError>
pub fn values( &self, record: &[u8], index: usize, ) -> Result<Vec<KeyValue>, KeyError>
The values of record’s keys; index is the record’s place, which an error names.
pub fn compare(&self, a: &[u8], b: &[u8]) -> Result<Ordering, KeyError>
Trait Implementations§
impl Eq for Keys
impl StructuralPartialEq for Keys
Auto Trait Implementations§
impl !Send for Keys
impl !Sync for Keys
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
impl UnwindSafe for Keys
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