#[repr(u32)]pub enum FLTrust {
kFLUntrusted = 0,
kFLTrusted = 1,
}Expand description
Specifies whether not input data is trusted to be 100% valid Fleece.
Variants§
kFLUntrusted = 0
Input data is not trusted to be valid, and will be fully validated by the API call.
kFLTrusted = 1
Input data is trusted to be valid. The API will perform only minimal validation when reading it. This is faster than kFLUntrusted, but should only be used if the data was generated by a trusted encoder and has not been altered or corrupted. For example, this can be used to parse Fleece data previously stored by your code in local storage. If invalid data is read by this call, subsequent calls to Value accessor functions can crash or return bogus results (including data from arbitrary memory locations.)
Trait Implementations§
impl Copy for FLTrust
impl Eq for FLTrust
impl StructuralPartialEq for FLTrust
Auto Trait Implementations§
impl Freeze for FLTrust
impl RefUnwindSafe for FLTrust
impl Send for FLTrust
impl Sync for FLTrust
impl Unpin for FLTrust
impl UnwindSafe for FLTrust
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