pub enum PlanSyntax {
V1,
Flags,
V2,
Typed,
}Expand description
The request syntax a refusal quotes, so a hint never names a form the caller’s parser would reject.
Variants§
V1
A schema_version: 1 JSON plan (edit --plan, the library).
Flags
The operation flags (edit FILE -p p3 --anchor … --content …).
V2
A schema_version: 2 plan (edit apply).
Typed
The typed commands (edit replace FILE --at p3 --find … --text …),
which take their decisions as --accept-change / --reject-change.
Implementations§
Source§impl PlanSyntax
impl PlanSyntax
Sourcepub const ALL: [PlanSyntax; 4]
pub const ALL: [PlanSyntax; 4]
Every syntax, for the tests that check each one’s fragments.
Trait Implementations§
Source§impl Clone for PlanSyntax
impl Clone for PlanSyntax
Source§fn clone(&self) -> PlanSyntax
fn clone(&self) -> PlanSyntax
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlanSyntax
Source§impl Debug for PlanSyntax
impl Debug for PlanSyntax
Source§impl Default for PlanSyntax
impl Default for PlanSyntax
Source§fn default() -> PlanSyntax
fn default() -> PlanSyntax
Returns the “default value” for a type. Read more
impl Eq for PlanSyntax
Source§impl PartialEq for PlanSyntax
impl PartialEq for PlanSyntax
impl StructuralPartialEq for PlanSyntax
Auto Trait Implementations§
impl Forget for PlanSyntax
impl Freeze for PlanSyntax
impl Move for PlanSyntax
impl RefUnwindSafe for PlanSyntax
impl Send for PlanSyntax
impl Sync for PlanSyntax
impl Unpin for PlanSyntax
impl UnsafeUnpin for PlanSyntax
impl UnwindSafe for PlanSyntax
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.