pub struct FieldSpec {
pub name: &'static str,
pub pos: FieldPos,
pub kind: FieldKind,
}Expand description
Metadados que definem um campo no layout.
Esta estrutura é geralmente construída automaticamente pela macro derive.
Fields§
§name: &'static strNome do campo (deve coincidir com o nome na struct alvo).
Usamos &'static str para performance (zero alocação na definição).
pos: FieldPosPosição no arquivo.
kind: FieldKindTipo de dado para tratamento.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldSpec
impl RefUnwindSafe for FieldSpec
impl Send for FieldSpec
impl Sync for FieldSpec
impl Unpin for FieldSpec
impl UnwindSafe for FieldSpec
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