Skip to content

PageTableEntry 类型是否应该使用 repr(transparent) #130

Open
@mapleFU

Description

@mapleFU
/// Sv39 结构的页表项
#[derive(Copy, Clone, Default)]
pub struct PageTableEntry(usize);

这个结构是不是最好是 repr(transparent) 的?按 Rust RFC 描述,感觉 repr(transparent) 能比较好控制 PageTableEntry 的 abi?

Metadata

Metadata

Assignees

No one assigned

    Labels

    learningLearner discussions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions