pub struct SourceLoadError { /* private fields */ }
Expand description
An error that occurs when trying .to load a source.
Implementations§
Source§impl SourceLoadError
impl SourceLoadError
Sourcepub fn new(path: PathBuf, cause: impl Display) -> Self
pub fn new(path: PathBuf, cause: impl Display) -> Self
Create a new SourceLoadError
.
The cause
argument should be some error type that communicates the
cause of the failure.
Trait Implementations§
Source§impl Clone for SourceLoadError
impl Clone for SourceLoadError
Source§fn clone(&self) -> SourceLoadError
fn clone(&self) -> SourceLoadError
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 SourceLoadError
impl Debug for SourceLoadError
Source§impl Display for SourceLoadError
impl Display for SourceLoadError
Source§impl Error for SourceLoadError
impl Error for SourceLoadError
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<SourceLoadError> for CompilerError
impl From<SourceLoadError> for CompilerError
Source§fn from(source: SourceLoadError) -> Self
fn from(source: SourceLoadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SourceLoadError
impl RefUnwindSafe for SourceLoadError
impl Send for SourceLoadError
impl Sync for SourceLoadError
impl Unpin for SourceLoadError
impl UnwindSafe for SourceLoadError
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.