Struct temporal_rs::error::TemporalError
source · pub struct TemporalError { /* private fields */ }
Expand description
The error type for boa_temporal
.
Implementations§
source§impl TemporalError
impl TemporalError
sourcepub fn abrupt_end() -> Self
pub fn abrupt_end() -> Self
Create an abrupt end error.
sourcepub fn with_message<S>(self, msg: S) -> Self
pub fn with_message<S>(self, msg: S) -> Self
Add a message to the error.
Trait Implementations§
source§impl Clone for TemporalError
impl Clone for TemporalError
source§fn clone(&self) -> TemporalError
fn clone(&self) -> TemporalError
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 TemporalError
impl Debug for TemporalError
source§impl Display for TemporalError
impl Display for TemporalError
source§impl From<CalendarError> for TemporalError
impl From<CalendarError> for TemporalError
source§fn from(value: CalendarError) -> Self
fn from(value: CalendarError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for TemporalError
impl Send for TemporalError
impl Sync for TemporalError
impl Unpin for TemporalError
impl UnwindSafe for TemporalError
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