pub struct ScriptRecord {
pub tag: Tag,
pub offset: u32,
pub num_languages: u16,
}Expand description
Information about a script.
Fields§
§tag: TagTag that identifies the script.
offset: u32Offset to the script table from the beginning of the associated layout table.
num_languages: u16Number of languages associated with the script.
Implementations§
Source§impl ScriptRecord
impl ScriptRecord
Sourcepub fn materialize<'a>(&self, layout: &'a Layout<'a>) -> Script<'a>
pub fn materialize<'a>(&self, layout: &'a Layout<'a>) -> Script<'a>
Creates a new bound script for the specified layout context. The script must belong to the associated layout table.
Trait Implementations§
Source§impl Clone for ScriptRecord
impl Clone for ScriptRecord
Source§fn clone(&self) -> ScriptRecord
fn clone(&self) -> ScriptRecord
Returns a duplicate 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 moreimpl Copy for ScriptRecord
Auto Trait Implementations§
impl Freeze for ScriptRecord
impl RefUnwindSafe for ScriptRecord
impl Send for ScriptRecord
impl Sync for ScriptRecord
impl Unpin for ScriptRecord
impl UnwindSafe for ScriptRecord
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