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