#[repr(i32)]pub enum ParseStatus {
PARSE_NULL = 0,
PARSE_OK = 1,
PARSE_INCOMPLETE = 2,
PARSE_ERROR = 3,
PARSE_EOF = 4,
}Expand description
Outcome of R_ParseVector (from R_ext/Parse.h).
PARSE_NULL is never returned by R_ParseVector; the meaningful success
value is ParseStatus::PARSE_OK. The remaining variants indicate parse
failures (PARSE_ERROR), incomplete input (PARSE_INCOMPLETE), or
end-of-input (PARSE_EOF).
Variants§
PARSE_NULL = 0
Never returned by R_ParseVector; the default-initialized sentinel.
PARSE_OK = 1
Parse succeeded.
PARSE_INCOMPLETE = 2
Input ended mid-expression (e.g. an unbalanced delimiter).
PARSE_ERROR = 3
A syntax error was encountered.
PARSE_EOF = 4
End of input reached with no further expressions.
Trait Implementations§
Source§impl Clone for ParseStatus
impl Clone for ParseStatus
Source§fn clone(&self) -> ParseStatus
fn clone(&self) -> ParseStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ParseStatus
Source§impl Debug for ParseStatus
impl Debug for ParseStatus
Source§impl Eq for ParseStatus
impl Eq for ParseStatus
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§impl PartialEq for ParseStatus
impl PartialEq for ParseStatus
Source§fn eq(&self, other: &ParseStatus) -> bool
fn eq(&self, other: &ParseStatus) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseStatus
impl TrivialClone for ParseStatus
Auto Trait Implementations§
impl Freeze for ParseStatus
impl RefUnwindSafe for ParseStatus
impl Send for ParseStatus
impl Sync for ParseStatus
impl Unpin for ParseStatus
impl UnsafeUnpin for ParseStatus
impl UnwindSafe for ParseStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
PARSE_NULL: 0 bytesPARSE_OK: 0 bytesPARSE_INCOMPLETE: 0 bytesPARSE_ERROR: 0 bytesPARSE_EOF: 0 bytes