#[repr(i32)]pub enum BoundaryPhase {
Start = 0,
End = 1,
}Expand description
Which end of an inline boundary tape a fragment marks.
Variants§
Start = 0
Opens a boundary body. Carries the full declaration metadata.
End = 1
Closes the body opened by the matching start in the same record. Only declaration_id is meaningful.
Implementations§
Source§impl BoundaryPhase
impl BoundaryPhase
Source§impl BoundaryPhase
impl BoundaryPhase
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for BoundaryPhase
impl Clone for BoundaryPhase
impl Copy for BoundaryPhase
Source§impl Debug for BoundaryPhase
impl Debug for BoundaryPhase
Source§impl Default for BoundaryPhase
impl Default for BoundaryPhase
Source§fn default() -> BoundaryPhase
fn default() -> BoundaryPhase
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoundaryPhase
impl<'de> Deserialize<'de> for BoundaryPhase
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BoundaryPhase
Source§impl From<BoundaryPhase> for i32
impl From<BoundaryPhase> for i32
Source§fn from(value: BoundaryPhase) -> i32
fn from(value: BoundaryPhase) -> i32
Converts to this type from the input type.
Source§impl Hash for BoundaryPhase
impl Hash for BoundaryPhase
Source§impl Ord for BoundaryPhase
impl Ord for BoundaryPhase
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BoundaryPhase
impl PartialEq for BoundaryPhase
Source§impl PartialOrd for BoundaryPhase
impl PartialOrd for BoundaryPhase
Source§impl Serialize for BoundaryPhase
impl Serialize for BoundaryPhase
impl StructuralPartialEq for BoundaryPhase
Source§impl TryFrom<i32> for BoundaryPhase
impl TryFrom<i32> for BoundaryPhase
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<BoundaryPhase, UnknownEnumValue>
fn try_from(value: i32) -> Result<BoundaryPhase, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BoundaryPhase
impl RefUnwindSafe for BoundaryPhase
impl Send for BoundaryPhase
impl Sync for BoundaryPhase
impl Unpin for BoundaryPhase
impl UnsafeUnpin for BoundaryPhase
impl UnwindSafe for BoundaryPhase
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