pub struct Presentation { /* private fields */ }Expand description
What a surface can honestly present, and what it had to give up.
A consumer-side result like Degradation, and not on the wire for
the same reason.
Implementations§
Source§impl Presentation
impl Presentation
Sourcepub fn degradations(&self) -> &[Degradation]
pub fn degradations(&self) -> &[Degradation]
Every optional demand this surface could not meet, in the order the definition asked for them.
Sourcepub fn is_faithful(&self) -> bool
pub fn is_faithful(&self) -> bool
Whether every demand was met.
Named for what a caller wants to know. A surface that dropped a diagram is still usable, but it is not showing what was written, and the difference should be visible rather than inferred from an empty list.
Trait Implementations§
Source§impl Clone for Presentation
impl Clone for Presentation
Source§impl Debug for Presentation
impl Debug for Presentation
impl Eq for Presentation
Source§impl PartialEq for Presentation
impl PartialEq for Presentation
impl StructuralPartialEq for Presentation
Auto Trait Implementations§
impl Freeze for Presentation
impl RefUnwindSafe for Presentation
impl Send for Presentation
impl Sync for Presentation
impl Unpin for Presentation
impl UnsafeUnpin for Presentation
impl UnwindSafe for Presentation
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