Skip to main content

HiiStringProtocol

Struct HiiStringProtocol 

Source
#[repr(C)]
pub struct HiiStringProtocol { pub new_string: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, string_id: *mut StringId, language: *const Char8, language_name: *const Char16, string: *const Char16, string_font_info: *const FontInfo) -> Status, pub get_string: unsafe extern "efiapi" fn(this: *const Self, language: *const Char8, package_list: HiiHandle, string_id: StringId, string: *mut *mut Char16, string_size: *mut usize, string_font_info: *mut *mut FontInfo) -> Status, pub set_string: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, string_id: StringId, language: *const Char8, string: *const Char16, string_font_info: *const FontInfo) -> Status, pub get_languages: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, languages: *mut Char8, languages_size: *mut usize) -> Status, pub get_secondary_languages: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, primary_language: *const Char8, secondary_languages: *mut Char8, secondary_languages_size: *mut usize) -> Status, }
Expand description

EFI_HII_STRING_PROTOCOL

Fields§

§new_string: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, string_id: *mut StringId, language: *const Char8, language_name: *const Char16, string: *const Char16, string_font_info: *const FontInfo) -> Status§get_string: unsafe extern "efiapi" fn(this: *const Self, language: *const Char8, package_list: HiiHandle, string_id: StringId, string: *mut *mut Char16, string_size: *mut usize, string_font_info: *mut *mut FontInfo) -> Status§set_string: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, string_id: StringId, language: *const Char8, string: *const Char16, string_font_info: *const FontInfo) -> Status§get_languages: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, languages: *mut Char8, languages_size: *mut usize) -> Status§get_secondary_languages: unsafe extern "efiapi" fn(this: *const Self, package_list: HiiHandle, primary_language: *const Char8, secondary_languages: *mut Char8, secondary_languages_size: *mut usize) -> Status

Implementations§

Trait Implementations§

Source§

impl Debug for HiiStringProtocol

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for HiiStringProtocol

§

impl RefUnwindSafe for HiiStringProtocol

§

impl Send for HiiStringProtocol

§

impl Sync for HiiStringProtocol

§

impl Unpin for HiiStringProtocol

§

impl UnsafeUnpin for HiiStringProtocol

§

impl UnwindSafe for HiiStringProtocol

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.