pub struct SelectedScript {
pub tag: Tag,
pub index: u16,
pub is_fallback: bool,
}
Expand description
A script chosen from a set of candidate tags.
Returned by the ScriptList::select
method.
Fields§
§tag: Tag
The actual OpenType tag of the chosen script.
index: u16
Index of the script in the ScriptList
.
is_fallback: bool
True if a script was chosen that wasn’t in the requested list.
Trait Implementations§
source§impl Clone for SelectedScript
impl Clone for SelectedScript
source§fn clone(&self) -> SelectedScript
fn clone(&self) -> SelectedScript
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectedScript
impl Debug for SelectedScript
source§impl PartialEq for SelectedScript
impl PartialEq for SelectedScript
impl Copy for SelectedScript
impl StructuralPartialEq for SelectedScript
Auto Trait Implementations§
impl Freeze for SelectedScript
impl RefUnwindSafe for SelectedScript
impl Send for SelectedScript
impl Sync for SelectedScript
impl Unpin for SelectedScript
impl UnwindSafe for SelectedScript
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)