pub enum AppendClosed {
Empty,
Chunk,
Fragment,
Identifier,
}Expand description
Denotes how append-closed a profile is.
This is really tricky to set properly unless you know what you are doing.
DO NOT GUESS! You should see Profile::APPEND_CLOSED for details
on how to set this properly.
Variants§
Empty
The profile is only append-closed with an empty string on one side.
All profiles are at least append-closed with an empty string.
Chunk
The profile is only append-closed from the context of a chunk (a run of characters containing only profile characters, and no delimiters).
Fragment
The profile is append-closed even from the context of a fragment, as long as one of the following is true:
- the fragment consists only of non-delimiter characters, or…
- if it does contain delimiter characters, the delimiter in question is
also
Fragmentappend-closed.
Identifier
The profile is append-closed even from the context of an identifier, as long as one of the following is true:
- the identifier consists only of non-delimiter characters, or…
- if it does contain delimiter characters, the delimiter in question is
also
Identifierappend-closed.
Implementations§
Source§impl AppendClosed
impl AppendClosed
Sourcepub const fn at_least_chunk(self) -> bool
pub const fn at_least_chunk(self) -> bool
If the append-closed property is >= Chunk.
Usually from the context of making optimization decisions, we only care if the append-closed property is over a certain minimal promise.
Sourcepub const fn at_least_fragment(self) -> bool
pub const fn at_least_fragment(self) -> bool
If the append-closed property is >= Fragment.
Usually from the context of making optimization decisions, we only care if the append-closed property is over a certain minimal promise.
Sourcepub const fn at_least_identifier(self) -> bool
pub const fn at_least_identifier(self) -> bool
If the append-closed property is >= Identifier.
Usually from the context of making optimization decisions, we only care if the append-closed property is over a certain minimal promise.
Trait Implementations§
Source§impl Clone for AppendClosed
impl Clone for AppendClosed
Source§fn clone(&self) -> AppendClosed
fn clone(&self) -> AppendClosed
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more