FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NameRecord

    struct · ferroui-base · v0.5.0

    struct NameRecord
    

    One record of the name table; the string is decoded on demand.

    View source

    Members

    new

    fn new(string_storage: ReadOnlyMemory<u8>, platform: PlatformID, language_id: u16, name_id: KnownNameIds, offset: u16, length: u16, encoding: Encoding) -> Self
    

    Source

    platform

    fn platform(self: &Self) -> PlatformID
    

    Source

    language_id

    fn language_id(self: &Self) -> u16
    

    The language of the record (an LCID for the Windows platform).

    Source

    name_id

    fn name_id(self: &Self) -> KnownNameIds
    

    Source

    offset

    fn offset(self: &Self) -> u16
    

    Source

    length

    fn length(self: &Self) -> u16
    

    Source

    encoding

    fn encoding(self: &Self) -> Encoding
    

    Source

    get_value

    fn get_value(self: &Self) -> String
    

    Decodes the string of the record.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.