pub struct MissingGlyph {
pub character: char,
pub offset: usize,
}Expand description
A character an embedded font has no glyph for.
What EmbeddedFont::encode_checked returns instead of writing
.notdef.
use pdfrum_edit::MissingGlyph;
let missing = MissingGlyph { character: '\u{4e00}', offset: 3 };
assert_eq!(missing.to_string(), "the font has no glyph for '\u{4e00}' at byte 3");Fields§
§character: charThe character with no glyph.
offset: usizeIts byte offset in the string that was encoded.
Trait Implementations§
Source§impl Clone for MissingGlyph
impl Clone for MissingGlyph
Source§fn clone(&self) -> MissingGlyph
fn clone(&self) -> MissingGlyph
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MissingGlyph
Source§impl Debug for MissingGlyph
impl Debug for MissingGlyph
Source§impl Display for MissingGlyph
impl Display for MissingGlyph
impl Eq for MissingGlyph
Source§impl Error for MissingGlyph
impl Error for MissingGlyph
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MissingGlyph> for Error
impl From<MissingGlyph> for Error
Source§fn from(source: MissingGlyph) -> Self
fn from(source: MissingGlyph) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MissingGlyph
impl PartialEq for MissingGlyph
impl StructuralPartialEq for MissingGlyph
Auto Trait Implementations§
impl Freeze for MissingGlyph
impl RefUnwindSafe for MissingGlyph
impl Send for MissingGlyph
impl Sync for MissingGlyph
impl Unpin for MissingGlyph
impl UnsafeUnpin for MissingGlyph
impl UnwindSafe for MissingGlyph
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