pub struct KeyHandler {
pub key: &'static str,
pub group: Group,
pub four_bytes: bool,
pub write_total_length: bool,
}Expand description
Запись канонического реестра ключей.
Fields§
§key: &'static str4-символьный ключ секции (как в файле; например "luni", "CAI ").
group: GroupЛогическая группа (определяет group-модуль).
four_bytes: boolwriteSection round для записи: некоторые ключи пишут 4-байтовую
длину секции (round=4) вместо 2-байтовой (round=2). Зеркало fourBytes
в writeAdditionalLayerInfo.
write_total_length: boolwriteTotalLength для writeSection — зеркало одноимённого флага.
Для большинства ключей true; false для Txt2/cinf/extn/CAI /OCIO.
Trait Implementations§
Source§impl Clone for KeyHandler
impl Clone for KeyHandler
Source§fn clone(&self) -> KeyHandler
fn clone(&self) -> KeyHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyHandler
Auto Trait Implementations§
impl Freeze for KeyHandler
impl RefUnwindSafe for KeyHandler
impl Send for KeyHandler
impl Sync for KeyHandler
impl Unpin for KeyHandler
impl UnsafeUnpin for KeyHandler
impl UnwindSafe for KeyHandler
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