pub struct DecodeOutcome<W> {
pub decoded: Rect,
pub warnings: Vec<W>,
}Expand description
Successful decode metadata plus non-fatal warnings.
Fields§
§decoded: RectSource/output rectangle actually decoded.
warnings: Vec<W>Non-fatal warnings observed during decode.
Implementations§
Source§impl<W> DecodeOutcome<W>
impl<W> DecodeOutcome<W>
Sourcepub fn new(decoded: Rect, warnings: Vec<W>) -> DecodeOutcome<W>
pub fn new(decoded: Rect, warnings: Vec<W>) -> DecodeOutcome<W>
Construct a decode outcome from the decoded rectangle and warnings.
Trait Implementations§
Source§impl<W> Clone for DecodeOutcome<W>where
W: Clone,
impl<W> Clone for DecodeOutcome<W>where
W: Clone,
Source§fn clone(&self) -> DecodeOutcome<W>
fn clone(&self) -> DecodeOutcome<W>
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 moreSource§impl<W> Debug for DecodeOutcome<W>where
W: Debug,
impl<W> Debug for DecodeOutcome<W>where
W: Debug,
impl<W> Eq for DecodeOutcome<W>where
W: Eq,
Source§impl<W> PartialEq for DecodeOutcome<W>where
W: PartialEq,
impl<W> PartialEq for DecodeOutcome<W>where
W: PartialEq,
Source§fn eq(&self, other: &DecodeOutcome<W>) -> bool
fn eq(&self, other: &DecodeOutcome<W>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<W> StructuralPartialEq for DecodeOutcome<W>where
W: PartialEq,
Auto Trait Implementations§
impl<W> Freeze for DecodeOutcome<W>
impl<W> RefUnwindSafe for DecodeOutcome<W>where
W: RefUnwindSafe,
impl<W> Send for DecodeOutcome<W>where
W: Send,
impl<W> Sync for DecodeOutcome<W>where
W: Sync,
impl<W> Unpin for DecodeOutcome<W>where
W: Unpin,
impl<W> UnsafeUnpin for DecodeOutcome<W>
impl<W> UnwindSafe for DecodeOutcome<W>where
W: UnwindSafe,
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