#[non_exhaustive]pub struct ExtensionRange {
pub start: i32,
pub end: i32,
pub options: Option<ExtensionRangeOptions>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.start: i32§end: i32§options: Option<ExtensionRangeOptions>Implementations§
Source§impl ExtensionRange
impl ExtensionRange
pub fn new() -> Self
Sourcepub fn set_options<T>(self, v: T) -> Selfwhere
T: Into<ExtensionRangeOptions>,
pub fn set_options<T>(self, v: T) -> Selfwhere
T: Into<ExtensionRangeOptions>,
Sets the value of options.
Sourcepub fn set_or_clear_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExtensionRangeOptions>,
pub fn set_or_clear_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ExtensionRangeOptions>,
Sets or clears the value of options.
Trait Implementations§
Source§impl Clone for ExtensionRange
impl Clone for ExtensionRange
Source§fn clone(&self) -> ExtensionRange
fn clone(&self) -> ExtensionRange
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 Debug for ExtensionRange
impl Debug for ExtensionRange
Source§impl Default for ExtensionRange
impl Default for ExtensionRange
Source§fn default() -> ExtensionRange
fn default() -> ExtensionRange
Returns the “default value” for a type. Read more
Source§impl Message for ExtensionRange
impl Message for ExtensionRange
Source§impl PartialEq for ExtensionRange
impl PartialEq for ExtensionRange
impl StructuralPartialEq for ExtensionRange
Auto Trait Implementations§
impl Freeze for ExtensionRange
impl RefUnwindSafe for ExtensionRange
impl Send for ExtensionRange
impl Sync for ExtensionRange
impl Unpin for ExtensionRange
impl UnwindSafe for ExtensionRange
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