pub struct FaceSnapshot { /* private fields */ }Expand description
One already bounded source or result face.
Implementations§
Source§impl FaceSnapshot
impl FaceSnapshot
Sourcepub fn text(content: impl Into<String>, codec: impl Into<String>) -> Self
pub fn text(content: impl Into<String>, codec: impl Into<String>) -> Self
Creates a complete text face.
Sourcepub fn bytes(content: Vec<u8>, codec: impl Into<String>) -> Self
pub fn bytes(content: Vec<u8>, codec: impl Into<String>) -> Self
Creates a complete opaque byte face. Rendering exposes only its size.
Sourcepub fn truncated(
dimension: impl Into<String>,
limit: usize,
observed: usize,
) -> Self
pub fn truncated( dimension: impl Into<String>, limit: usize, observed: usize, ) -> Self
Creates an explicitly truncated face.
Sourcepub fn unsupported(reason: impl Into<String>) -> Self
pub fn unsupported(reason: impl Into<String>) -> Self
Creates a face for a value with no safe projection.
Sourcepub fn codec_failure(message: impl Into<String>) -> Self
pub fn codec_failure(message: impl Into<String>) -> Self
Creates a face whose selected codec failed closed.
Sourcepub fn from_encoded(face: &EncodedFace) -> Self
pub fn from_encoded(face: &EncodedFace) -> Self
Copies the already bounded result of the expression-tree codec policy.
Trait Implementations§
Source§impl Clone for FaceSnapshot
impl Clone for FaceSnapshot
Source§fn clone(&self) -> FaceSnapshot
fn clone(&self) -> FaceSnapshot
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 Debug for FaceSnapshot
impl Debug for FaceSnapshot
impl Eq for FaceSnapshot
Source§impl PartialEq for FaceSnapshot
impl PartialEq for FaceSnapshot
impl StructuralPartialEq for FaceSnapshot
Auto Trait Implementations§
impl Freeze for FaceSnapshot
impl RefUnwindSafe for FaceSnapshot
impl Send for FaceSnapshot
impl Sync for FaceSnapshot
impl Unpin for FaceSnapshot
impl UnsafeUnpin for FaceSnapshot
impl UnwindSafe for FaceSnapshot
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