Struct tendril::fmt::imp::Fixup

source ·
pub struct Fixup {
    pub drop_left: u32,
    pub drop_right: u32,
    pub insert_len: u32,
    pub insert_bytes: [u8; 4],
}
Expand description

Describes how to fix up encodings when concatenating.

We can drop characters on either side of the splice, and insert up to 4 bytes in the middle.

Fields§

§drop_left: u32§drop_right: u32§insert_len: u32§insert_bytes: [u8; 4]

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.