pub struct FieldCursor(/* private fields */);Implementations§
Source§impl FieldCursor
impl FieldCursor
pub fn set(&mut self, value: &str) -> Result<(), CLIError>
pub fn did_you_mean(value: &str, possible_values: &[&str]) -> Option<String>
pub fn set_json_value( &self, object: &mut Value, value: &str, type_info: JsonTypeInfo, err: &mut InvalidOptionsError, orig_cursor: &FieldCursor, )
pub fn num_fields(&self) -> usize
Trait Implementations§
Source§impl Clone for FieldCursor
impl Clone for FieldCursor
Source§fn clone(&self) -> FieldCursor
fn clone(&self) -> FieldCursor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for FieldCursor
impl Default for FieldCursor
Source§fn default() -> FieldCursor
fn default() -> FieldCursor
Returns the “default value” for a type. Read more
Source§impl Display for FieldCursor
impl Display for FieldCursor
Source§impl From<&'static str> for FieldCursor
impl From<&'static str> for FieldCursor
Source§fn from(value: &'static str) -> FieldCursor
fn from(value: &'static str) -> FieldCursor
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FieldCursor
impl RefUnwindSafe for FieldCursor
impl Send for FieldCursor
impl Sync for FieldCursor
impl Unpin for FieldCursor
impl UnwindSafe for FieldCursor
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