pub struct HumanProjection(/* private fields */);Expand description
One bounded human-readable rendering of a typed value.
It is a projection and only a projection: derived from typed values, carried for a person to read, and never read back. No decision, no identity, and no refusal anywhere in this compiler consults one.
Implementations§
Source§impl HumanProjection
impl HumanProjection
Sourcepub fn projected(text: &str) -> Result<Self, Overflow>
pub fn projected(text: &str) -> Result<Self, Overflow>
Render one bounded human projection.
§Errors
Returns Overflow when the rendering runs past HUMAN_TEXT_LIMIT.
A projection that does not fit refuses rather than truncating: a silently cut explanation is a false one.
Trait Implementations§
Source§impl Clone for HumanProjection
impl Clone for HumanProjection
Source§fn clone(&self) -> HumanProjection
fn clone(&self) -> HumanProjection
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 HumanProjection
impl Debug for HumanProjection
impl Eq for HumanProjection
Source§impl Hash for HumanProjection
impl Hash for HumanProjection
Source§impl PartialEq for HumanProjection
impl PartialEq for HumanProjection
impl StructuralPartialEq for HumanProjection
Auto Trait Implementations§
impl Freeze for HumanProjection
impl RefUnwindSafe for HumanProjection
impl Send for HumanProjection
impl Sync for HumanProjection
impl Unpin for HumanProjection
impl UnsafeUnpin for HumanProjection
impl UnwindSafe for HumanProjection
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