pub struct PackingError { /* private fields */ }
Expand description
A packing could not be found that satisfied all offsets
If the “dot2” feature is enabled, you can use the write_graph_viz
method
on this error to dump a text representation of the graph to disk. You can
then use graphviz to convert this into an image. For example, to create
an SVG, you might use, dot -v -Tsvg failure.dot2 > failure.svg
, where
‘failure.dot2’ is the path where you dumped the graph.
Implementations§
Source§impl PackingError
impl PackingError
Sourcepub fn write_graph_viz(&self, path: impl AsRef<Path>) -> Result<()>
Available on crate feature dot2
only.
pub fn write_graph_viz(&self, path: impl AsRef<Path>) -> Result<()>
dot2
only.Write a graphviz file representing the failed packing to the provided path.
Has the same semantics as std::fs::write
.
Trait Implementations§
Source§impl Clone for PackingError
impl Clone for PackingError
Source§fn clone(&self) -> PackingError
fn clone(&self) -> PackingError
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 moreSource§impl Debug for PackingError
impl Debug for PackingError
Source§impl Display for PackingError
impl Display for PackingError
Source§impl Error for PackingError
impl Error for PackingError
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()
Auto Trait Implementations§
impl Freeze for PackingError
impl RefUnwindSafe for PackingError
impl Send for PackingError
impl Sync for PackingError
impl Unpin for PackingError
impl UnwindSafe for PackingError
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§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T
, using the provided data to resolve any offsets.