pub struct FrameBuilder { /* private fields */ }
Expand description
Builder for a frame. A collection of frames identifies a stack trace.
Implementations§
Source§impl<'a> FrameBuilder
impl<'a> FrameBuilder
Sourcepub fn with_file_name<T: Into<String>>(
&'a mut self,
file_name: T,
) -> &'a mut Self
pub fn with_file_name<T: Into<String>>( &'a mut self, file_name: T, ) -> &'a mut Self
Tell the origin of the error by adding the file name to the report.
pub fn with_line_number(&mut self, val: u32) -> &mut Self
pub fn with_column_number(&mut self, val: u32) -> &mut Self
pub fn with_function_name<T: Into<String>>(&mut self, val: T) -> &mut Self
Trait Implementations§
Source§impl Clone for FrameBuilder
impl Clone for FrameBuilder
Source§fn clone(&self) -> FrameBuilder
fn clone(&self) -> FrameBuilder
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 FrameBuilder
impl Debug for FrameBuilder
Source§impl Default for FrameBuilder
impl Default for FrameBuilder
Source§fn default() -> FrameBuilder
fn default() -> FrameBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FrameBuilder
impl RefUnwindSafe for FrameBuilder
impl Send for FrameBuilder
impl Sync for FrameBuilder
impl Unpin for FrameBuilder
impl UnwindSafe for FrameBuilder
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more