diff --git a/reqwest/header/struct.HeaderMap.html b/reqwest/header/struct.HeaderMap.html index 7067fa7577ff..3091241e5d9d 100644 --- a/reqwest/header/struct.HeaderMap.html +++ b/reqwest/header/struct.HeaderMap.html @@ -434,9 +434,9 @@

Examples

T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/header/struct.HeaderName.html b/reqwest/header/struct.HeaderName.html index 718d4b6c4d2d..1ede1c11d263 100644 --- a/reqwest/header/struct.HeaderName.html +++ b/reqwest/header/struct.HeaderName.html @@ -114,9 +114,9 @@
Examples
) -> Result<HeaderName, <HeaderName as TryFrom<Vec<u8, Global>>>::Error>

Performs the conversion.
source§

impl<'a> AsHeaderName for &'a HeaderName

source§

impl AsHeaderName for HeaderName

source§

impl Eq for HeaderName

source§

impl<'a> IntoHeaderName for &'a HeaderName

source§

impl IntoHeaderName for HeaderName

source§

impl StructuralEq for HeaderName

source§

impl StructuralPartialEq for HeaderName

Auto Trait Implementations§

§

impl RefUnwindSafe for HeaderName

§

impl Send for HeaderName

§

impl Sync for HeaderName

§

impl Unpin for HeaderName

§

impl UnwindSafe for HeaderName

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/header/struct.HeaderValue.html b/reqwest/header/struct.HeaderValue.html index bd90147fe29a..9b6d56072954 100644 --- a/reqwest/header/struct.HeaderValue.html +++ b/reqwest/header/struct.HeaderValue.html @@ -181,9 +181,9 @@
Examples
) -> Result<HeaderValue, <HeaderValue as TryFrom<Vec<u8, Global>>>::Error>

Performs the conversion.
source§

impl Eq for HeaderValue

Auto Trait Implementations§

§

impl RefUnwindSafe for HeaderValue

§

impl Send for HeaderValue

§

impl Sync for HeaderValue

§

impl Unpin for HeaderValue

§

impl UnwindSafe for HeaderValue

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/struct.Method.html b/reqwest/struct.Method.html index 02b85785ce0b..ca047b5cb6b0 100644 --- a/reqwest/struct.Method.html +++ b/reqwest/struct.Method.html @@ -49,9 +49,9 @@

Examples

sufficient, and should not be overridden without very good reason.

source§

impl<'a> TryFrom<&'a [u8]> for Method

§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a [u8]) -> Result<Method, <Method as TryFrom<&'a [u8]>>::Error>

Performs the conversion.
source§

impl<'a> TryFrom<&'a str> for Method

§

type Error = InvalidMethod

The type returned in the event of a conversion error.
source§

fn try_from(t: &'a str) -> Result<Method, <Method as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl Eq for Method

source§

impl StructuralEq for Method

source§

impl StructuralPartialEq for Method

Auto Trait Implementations§

§

impl RefUnwindSafe for Method

§

impl Send for Method

§

impl Sync for Method

§

impl Unpin for Method

§

impl UnwindSafe for Method

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/struct.StatusCode.html b/reqwest/struct.StatusCode.html index 05051352bcbc..eb7afd8ef006 100644 --- a/reqwest/struct.StatusCode.html +++ b/reqwest/struct.StatusCode.html @@ -197,9 +197,9 @@

Example

) -> Result<StatusCode, <StatusCode as TryFrom<&'a str>>::Error>

Performs the conversion.
source§

impl TryFrom<u16> for StatusCode

§

type Error = InvalidStatusCode

The type returned in the event of a conversion error.
source§

fn try_from(t: u16) -> Result<StatusCode, <StatusCode as TryFrom<u16>>::Error>

Performs the conversion.
source§

impl Copy for StatusCode

source§

impl Eq for StatusCode

source§

impl StructuralEq for StatusCode

source§

impl StructuralPartialEq for StatusCode

Auto Trait Implementations§

§

impl RefUnwindSafe for StatusCode

§

impl Send for StatusCode

§

impl Sync for StatusCode

§

impl Unpin for StatusCode

§

impl UnwindSafe for StatusCode

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/struct.Url.html b/reqwest/struct.Url.html index 8b48b1b07ec5..4a76dffd401d 100644 --- a/reqwest/struct.Url.html +++ b/reqwest/struct.Url.html @@ -770,9 +770,9 @@
Examples

source§

impl IntoUrl for Url

Auto Trait Implementations§

§

impl RefUnwindSafe for Url

§

impl Send for Url

§

impl Sync for Url

§

impl Unpin for Url

§

impl UnwindSafe for Url

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/struct.Version.html b/reqwest/struct.Version.html index ae8bafeed65e..2035d226bca4 100644 --- a/reqwest/struct.Version.html +++ b/reqwest/struct.Version.html @@ -17,9 +17,9 @@ operator. Read more

source§

impl Copy for Version

source§

impl Eq for Version

source§

impl StructuralEq for Version

source§

impl StructuralPartialEq for Version

Auto Trait Implementations§

§

impl RefUnwindSafe for Version

§

impl Send for Version

§

impl Sync for Version

§

impl Unpin for Version

§

impl UnwindSafe for Version

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/reqwest/tls/struct.Version.html b/reqwest/tls/struct.Version.html index cdebba29fb87..aa42d60430ce 100644 --- a/reqwest/tls/struct.Version.html +++ b/reqwest/tls/struct.Version.html @@ -13,9 +13,9 @@ operator. Read more

source§

impl Copy for Version

source§

impl Eq for Version

source§

impl StructuralEq for Version

source§

impl StructuralPartialEq for Version

Auto Trait Implementations§

§

impl RefUnwindSafe for Version

§

impl Send for Version

§

impl Sync for Version

§

impl Unpin for Version

§

impl UnwindSafe for Version

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, - K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ K: Borrow<Q> + ?Sized,
source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere diff --git a/search-index.js b/search-index.js index d20c5aeeac4f..b9f5883f8b26 100644 --- a/search-index.js +++ b/search-index.js @@ -197,7 +197,7 @@ var searchIndex = JSON.parse('{\ "streaming_iterator":{"doc":"Streaming iterators.","t":"DDDDDDIIDDDDDDDDDIQDDDDDDDDDDDIIDDDDKLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFFFLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLKLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFFLFFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLF","n":["Chain","Cloned","Convert","ConvertMut","ConvertRef","Copied","DoubleEndedStreamingIterator","DoubleEndedStreamingIteratorMut","Empty","Filter","FilterMap","FilterMapDeref","FlatMap","Flatten","FromFn","Fuse","Inspect","IntoStreamingIterator","Item","Map","MapDeref","MapDerefMut","MapRef","Once","OnceWith","Repeat","RepeatWith","Rev","Skip","SkipWhile","StreamingIterator","StreamingIteratorMut","Successors","Take","TakeWhile","WindowsMut","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","advance_back","all","any","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","by_ref","chain","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","cloned","convert","convert_mut","convert_ref","copied","count","count","count","count","count","count","empty","filter","filter_map","filter_map_deref","find","flat_map","flatten","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","fold_mut","for_each","for_each_mut","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_fn","fuse","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","get_mut","inspect","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_iter","into_iter","into_iter","into_iter","into_iter","into_streaming_iter","into_streaming_iter_mut","into_streaming_iter_ref","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","is_done","map","map_deref","map_deref_mut","map_ref","next","next","next","next","next","next","next","next","next","next","next","next_back","next_back","next_back","next_back","next_back","next_back","next_back","next_back","next_back_mut","next_back_mut","next_mut","next_mut","nth","once","once_with","position","repeat","repeat_with","rev","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold","rfold_mut","rfold_mut","rfold_mut","rfold_mut","rfold_mut","rfold_mut","rfold_mut","rfold_mut","rfold_mut","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","size_hint","skip","skip_while","successors","take","take_while","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","windows_mut"],"q":[[0,"streaming_iterator"]],"d":["A streaming iterator that concatenates two streaming …","A normal, non-streaming, iterator which converts the …","A streaming iterator which yields elements from a normal, …","A streaming iterator which yields elements from an …","A streaming iterator which yields elements from an …","A normal, non-streaming, iterator which converts the …","A streaming iterator able to yield elements from both ends.","A mutable streaming iterator able to yield elements from …","A simple iterator that returns nothing.","A streaming iterator which filters the elements of a …","An iterator which both filters and maps elements of a …","A regular, non-streaming iterator which both filters and …","A streaming iterator that maps elements to iterators with …","A streaming iterator that flattens nested streaming …","A simple iterator that returns items from a function call.","A streaming iterator which is well-defined before and …","A streaming iterator that calls a function with element …","Conversion from IntoIterator to StreamingIterator.","The type of the elements being iterated over.","A streaming iterator which transforms the elements of a …","A regular, non-streaming iterator which transforms the …","A regular, non-streaming iterator which transforms the …","A streaming iterator which transforms the elements of a …","A simple iterator that returns exactly one item.","A simple iterator that returns exactly one item from a …","A simple iterator that repeats an item endlessly.","A simple iterator that endlessly returns items from a …","A streaming iterator which returns elements in the …","A streaming iterator which skips a number of elements in a …","A streaming iterator which skips initial elements that …","An interface for dealing with streaming iterators.","An interface for dealing with mutable streaming iterators.","An iterator where each successive item is computed from …","A streaming iterator which only yields a limited number of …","A streaming iterator which only returns initial elements …","A streaming iterator which returns overlapping mutable …","Advances the iterator to the next element.","","","","","","","","","","","","","","","","","","","","","","","","","","Advances the iterator to the next element from the back of …","","","","","","","","","","","","","","","Determines if all elements of the iterator satisfy a …","Determines if any elements of the iterator satisfy a …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Borrows an iterator, rather than consuming it.","Consumes two iterators and returns a new iterator that …","","","","","","","","","","","","","","","","Produces a normal, non-streaming, iterator by cloning the …","Turns a normal, non-streaming iterator into a streaming …","Turns an iterator of mutable references into a streaming …","Turns an iterator of references into a streaming iterator.","Produces a normal, non-streaming, iterator by copying the …","","Consumes the iterator, counting the number of remaining …","","","","","Creates an empty iterator.","Creates an iterator which uses a closure to determine if …","Creates an iterator which both filters and maps by …","Creates a regular, non-streaming iterator which both …","Returns the first element of the iterator that satisfies …","Creates an iterator which flattens iterators obtained by …","Creates an iterator which flattens nested streaming …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Reduces the iterator’s elements to a single, final value.","","","","","","","","","","","","","","","","","","","","","Reduces the iterator’s mutable elements to a single, …","","","","","","","","","","","","","","Calls a closure on each element of an iterator.","Calls a closure on each mutable element of an iterator.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Creates an iterator that returns items from a function …","Creates an iterator which is “well behaved” at the …","Returns a reference to the current element of the iterator.","","","","","","","","","","","","","","","","","","","","","","","","","","Returns a mutable reference to the current element of the …","","","","","","","","","","","","","","","","","","","","","","","","Call a closure on each element, passing the element on. …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","","","","Turns an IntoIterator into a StreamingIterator.","Turns an IntoIterator of mutable references into a …","Turns an IntoIterator of references into a …","","Checks if get() will return None.","","","","","","","","","","","","","Creates an iterator which transforms elements of this …","Creates a regular, non-streaming iterator which transforms …","Creates a regular, non-streaming iterator which transforms …","Creates an iterator which transforms elements of this …","","Advances the iterator and returns the next value.","","","","","","","","","","","Advances the iterator and returns the next value from the …","","","","","","","","Advances the iterator and returns the next mutable value …","","Advances the iterator and returns the next mutable value.","Consumes the first n elements of the iterator, returning …","Creates an iterator that returns exactly one item.","Creates an iterator that returns exactly one item from a …","Returns the index of the first element of the iterator …","Creates an iterator that returns an item endlessly.","Creates an iterator that endlessly returns items from a …","Creates an iterator which returns elemens in the opposite …","Reduces the iterator’s elements to a single, final …","","","","","","","","","","","","","","","Reduces the iterator’s mutable elements to a single, …","","","","","","","","","","Returns the bounds on the remaining length of the iterator.","","","","","","","","","","","","","","","","","","","","","","","","","Creates an iterator which skips the first n elements.","Creates an iterator that skips initial elements matching a …","Creates an iterator where each successive item is computed …","Creates an iterator which only returns the first n …","Creates an iterator which only returns initial elements …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Creates an iterator over all contiguous windows of length …"],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,1,3,5,7,8,9,11,12,14,15,16,17,19,20,21,22,24,25,26,27,29,30,31,32,33,2,1,3,5,7,8,9,12,14,15,19,20,21,26,27,18,18,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,18,18,5,7,9,11,12,14,15,16,17,37,38,25,30,31,32,18,0,0,0,18,1,18,5,7,8,25,0,18,18,18,18,18,23,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,18,3,5,7,8,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,23,3,5,8,19,20,21,22,24,25,26,27,30,31,18,23,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,0,18,18,1,3,5,7,8,9,11,12,14,15,16,17,19,20,21,22,24,25,26,27,29,30,31,32,33,23,1,3,5,8,9,11,12,14,15,16,17,19,20,21,22,24,25,26,27,30,31,32,33,18,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,37,38,41,46,47,52,52,52,1,18,3,19,20,22,24,25,26,29,30,31,32,33,18,18,23,18,1,18,3,37,38,41,25,46,47,29,33,1,2,3,37,38,41,46,47,1,48,1,23,18,0,0,18,0,0,18,2,3,5,7,8,19,37,38,20,21,41,26,27,46,47,48,3,5,8,19,20,21,26,27,1,18,3,5,7,8,9,12,14,15,16,17,37,38,20,21,25,26,27,46,47,29,30,31,32,33,18,18,0,18,18,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,1,3,5,7,8,9,11,12,14,15,16,17,19,37,38,20,21,22,24,41,25,26,27,46,47,29,30,31,32,33,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[1],[[[3,[2]]]],[[[5,[4]]]],[[[7,[4,6]]]],[[[8,[4,6]]]],[9],[[[11,[10]]]],[12],[[[14,[13]]]],[15],[[[16,[10]]]],[[[17,[10]]]],[[[19,[18,18]]]],[[[20,[18,10]]]],[[[21,[18,10]]]],[[[22,[18,18,10]]]],[[[24,[23]]]],[[[25,[18]]]],[[[26,[18,10]]]],[[[27,[18,10]]]],[[[29,[18,28]]]],[[[30,[18]]]],[[[31,[18,10]]]],[[[32,[18]]]],[[[33,[18,10]]]],[[]],[1],[[[3,[2]]]],[[[5,[34]]]],[[[7,[34,6]]]],[[[8,[34,6]]]],[9],[12],[[[14,[13]]]],[15],[[[19,[2,2]]]],[[[20,[2,10]]]],[[[21,[2,10]]]],[[[26,[2,10]]]],[[[27,[2,10]]]],[[6,10],35],[[6,10],35],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[6,6],[[6,[0,[18,6]]],[[19,[6,[0,[18,6]]]]]],[[[5,[[0,[4,36]]]]],[[5,[[0,[4,36]]]]]],[[[7,[[0,[4,36]],[0,[36,6]]]]],[[7,[[0,[4,36]],[0,[36,6]]]]]],[[[9,[36]]],[[9,[36]]]],[[[11,[36,36]]],[[11,[36,36]]]],[[[12,[36]]],[[12,[36]]]],[[[14,[36,36]]],[[14,[36,36]]]],[[[15,[36]]],[[15,[36]]]],[[[16,[36,36]]],[[16,[36,36]]]],[[[17,[36,36]]],[[17,[36,36]]]],[[[37,[36]]],[[37,[36]]]],[[[38,[36]]],[[38,[36]]]],[[[25,[36]]],[[25,[36]]]],[[[30,[36]]],[[30,[36]]]],[[[31,[36,36]]],[[31,[36,36]]]],[[[32,[36]]],[[32,[36]]]],[6,[[37,[6]]]],[39,5],[39,[[8,[6]]]],[39,[[7,[6]]]],[6,[[38,[6]]]],[1,40],[6,40],[[[5,[4]]],40],[[[7,[4,6]]],40],[[[8,[4,6]]],40],[[[25,[18]]],40],[[],9],[[6,10],[[20,[6,10]]]],[[6,10],[[21,[6,10]]]],[[6,10],[[41,[6,10]]]],[[6,10],42],[[6,10],[[22,[6,18,10]]]],[6,[[24,[6]]]],[[[5,[[0,[4,43]]]],44],45],[[[7,[[0,[4,43]],[0,[43,6]]]],44],45],[[[8,[[0,[4,43]],[0,[43,6]]]],44],45],[[[9,[43]],44],45],[[[11,[43,43]],44],45],[[[12,[43]],44],45],[[[14,[43,43]],44],45],[[[15,[43]],44],45],[[[16,[43,43]],44],45],[[[17,[43,43]],44],45],[[[19,[43,43]],44],45],[[[37,[43]],44],45],[[[38,[43]],44],45],[[[20,[43,43]],44],45],[[[21,[43,43,43]],44],45],[[[22,[43,43,43]],44],45],[[[24,[43]],44],45],[[[41,[43,43]],44],45],[[[25,[43]],44],45],[[[26,[43,43]],44],45],[[[27,[43,43,43]],44],45],[[[46,[43,43]],44],45],[[[47,[43,43]],44],45],[[[29,[43,43]],44],45],[[[30,[43]],44],45],[[[31,[43,43]],44],45],[[[32,[43]],44],45],[[[33,[43,43]],44],45],[[6,10]],[[[3,[2]],10]],[[[5,[4]],10]],[[[7,[4,6]],10]],[[[8,[4,6]],10]],[[[19,[18,18]],10]],[[[37,[18]],10]],[[[38,[18]],10]],[[[20,[18,10]],10]],[[[21,[18,10]],10]],[[[22,[18,18,10]],10]],[[[24,[23]],10]],[[[41,[18,10]],10]],[[[25,[18]],10]],[[[26,[18,10]],10]],[[[27,[18,10]],10]],[[[46,[18,10]],10]],[[[47,[23,10]],10]],[[[29,[18,28]],10]],[[[30,[18]],10]],[[[31,[18,10]],10]],[[6,10]],[[[3,[48]],10]],[[[5,[4]],10]],[[[8,[4,6]],10]],[[[19,[23,23]],10]],[[[20,[23,10]],10]],[[[21,[18,10]],10]],[[[22,[18,23,10]],10]],[[[24,[23]],10]],[[[25,[23]],10]],[[[26,[23,10]],10]],[[[27,[18,10]],10]],[[[30,[23]],10]],[[[31,[23,10]],10]],[[6,10]],[[6,10]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[10,[[11,[10]]]],[6,[[25,[6]]]],[[],42],[1,42],[[[3,[2]]],42],[[[5,[4]]],42],[[[7,[4,6]]],[[42,[6]]]],[[[8,[4,6]]],[[42,[6]]]],[9,42],[[[11,[10]]],42],[12,42],[[[14,[13]]],42],[15,42],[[[16,[10]]],42],[[[17,[10]]],42],[[[19,[18,18]]],42],[[[20,[18,10]]],42],[[[21,[18,10]]],42],[[[22,[18,18,10]]],42],[[[24,[23]]],42],[[[25,[18]]],42],[[[26,[18,10]]],42],[[[27,[18,10]]],42],[[[29,[18,28]]],[[42,[6]]]],[[[30,[18]]],42],[[[31,[18,10]]],42],[[[32,[18]]],42],[[[33,[18,10]]],42],[[],42],[1,42],[[[3,[48]]],42],[[[5,[4]]],42],[[[8,[4,6]]],42],[9,42],[[[11,[10]]],42],[12,42],[[[14,[13]]],42],[15,42],[[[16,[10]]],42],[[[17,[10]]],42],[[[19,[23,23]]],42],[[[20,[23,10]]],42],[[[21,[18,10]]],42],[[[22,[18,23,10]]],42],[[[24,[23]]],42],[[[25,[23]]],42],[[[26,[23,10]]],42],[[[27,[18,10]]],42],[[[30,[23]]],42],[[[31,[23,10]]],42],[[[32,[23]]],42],[[[33,[23,10]]],42],[[6,10],[[26,[6,10]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],5],[39,[[8,[6]]]],[39,[[7,[6]]]],[1,35],[[],35],[[[3,[2]]],35],[[[19,[18,18]]],35],[[[20,[18,10]]],35],[[[22,[18,18,10]]],35],[[[24,[23]]],35],[[[25,[18]]],35],[[[26,[18,10]]],35],[[[29,[18,28]]],35],[[[30,[18]]],35],[[[31,[18,10]]],35],[[[32,[18]]],35],[[[33,[18,10]]],35],[[6,10],[[27,[6,10]]]],[[6,10],[[46,[6,10]]]],[[6,10],[[47,[6,10]]]],[[6,28],[[29,[6,28]]]],[1,42],[[],42],[[[3,[2]]],42],[[[37,[18]]],42],[[[38,[18]]],42],[[[41,[18,10]]],42],[[[25,[18]]],42],[[[46,[18,10]]],42],[[[47,[23,10]]],42],[[[29,[18,28]]],[[42,[6]]]],[[[33,[18,10]]],42],[1,42],[[],42],[[[3,[2]]],42],[[[37,[2]]],42],[[[38,[2]]],42],[[[41,[2,10]]],42],[[[46,[2,10]]],42],[[[47,[48,10]]],42],[1,42],[[],42],[1,42],[[],42],[40,42],[[],12],[13,[[14,[13]]]],[[6,10],[[42,[40]]]],[[],15],[10,[[16,[10]]]],[[[0,[6,2]]],[[3,[[0,[6,2]]]]]],[[6,10]],[[[3,[2]],10]],[[[5,[34]],10]],[[[7,[34,6]],10]],[[[8,[34,6]],10]],[[[19,[2,2]],10]],[[[37,[2]],10]],[[[38,[2]],10]],[[[20,[2,10]],10]],[[[21,[2,10]],10]],[[[41,[2,10]],10]],[[[26,[2,10]],10]],[[[27,[2,10]],10]],[[[46,[2,10]],10]],[[[47,[48,10]],10]],[[6,10]],[[[3,[48]],10]],[[[5,[34]],10]],[[[8,[34,6]],10]],[[[19,[48,48]],10]],[[[20,[48,10]],10]],[[[21,[2,10]],10]],[[[26,[48,10]],10]],[[[27,[2,10]],10]],[1],[[]],[[[3,[2]]]],[[[5,[4]]]],[[[7,[4,6]]]],[[[8,[4,6]]]],[9],[12],[[[14,[13]]]],[15],[[[16,[10]]]],[[[17,[10]]]],[[[37,[18]]]],[[[38,[18]]]],[[[20,[18,10]]]],[[[21,[18,10]]]],[[[25,[18]]]],[[[26,[18,10]]]],[[[27,[18,10]]]],[[[46,[18,10]]]],[[[47,[23,10]]]],[[[29,[18,28]]]],[[[30,[18]]]],[[[31,[18,10]]]],[[[32,[18]]]],[[[33,[18,10]]]],[[6,40],[[30,[6]]]],[[6,10],[[31,[6,10]]]],[[42,10],[[17,[10]]]],[[6,40],[[32,[6]]]],[[6,10],[[33,[6,10]]]],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],49],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[],50],[[51,40],1]],"c":[],"p":[[3,"WindowsMut"],[8,"DoubleEndedStreamingIterator"],[3,"Rev"],[8,"Iterator"],[3,"Convert"],[8,"Sized"],[3,"ConvertRef"],[3,"ConvertMut"],[3,"Empty"],[8,"FnMut"],[3,"FromFn"],[3,"Once"],[8,"FnOnce"],[3,"OnceWith"],[3,"Repeat"],[3,"RepeatWith"],[3,"Successors"],[8,"StreamingIterator"],[3,"Chain"],[3,"Filter"],[3,"FilterMap"],[3,"FlatMap"],[8,"StreamingIteratorMut"],[3,"Flatten"],[3,"Fuse"],[3,"Inspect"],[3,"Map"],[8,"Fn"],[3,"MapRef"],[3,"Skip"],[3,"SkipWhile"],[3,"Take"],[3,"TakeWhile"],[8,"DoubleEndedIterator"],[15,"bool"],[8,"Clone"],[3,"Cloned"],[3,"Copied"],[8,"IntoIterator"],[15,"usize"],[3,"FilterMapDeref"],[4,"Option"],[8,"Debug"],[3,"Formatter"],[6,"Result"],[3,"MapDeref"],[3,"MapDerefMut"],[8,"DoubleEndedStreamingIteratorMut"],[4,"Result"],[3,"TypeId"],[15,"slice"],[8,"IntoStreamingIterator"]]},\ "strength_reduce":{"doc":"strength_reduce implements integer division and modulo via …","t":"DDDDDDLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL","n":["StrengthReducedU128","StrengthReducedU16","StrengthReducedU32","StrengthReducedU64","StrengthReducedU8","StrengthReducedUsize","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","div_rem","div_rem","div_rem","div_rem","div_rem","div_rem","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","get","get","get","get","get","get","into","into","into","into","into","into","new","new","new","new","new","new","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id"],"q":[[0,"strength_reduce"]],"d":["Implements unsigned division and modulo via mutiplication …","Implements unsigned division and modulo via mutiplication …","Implements unsigned division and modulo via mutiplication …","Implements unsigned division and modulo via mutiplication …","Implements unsigned division and modulo via mutiplication …","Implements unsigned division and modulo via mutiplication …","","","","","","","","","","","","","","","","","","","Simultaneous truncated integer division and modulus. …","Simultaneous truncated integer division and modulus. …","Simultaneous truncated integer division and modulus. …","Simultaneous truncated integer division and modulus. …","Simultaneous truncated integer division and modulus. …","Simultaneous truncated integer division and modulus. …","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Retrieve the value used to create this struct","Retrieve the value used to create this struct","Retrieve the value used to create this struct","Retrieve the value used to create this struct","Retrieve the value used to create this struct","Retrieve the value used to create this struct","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Creates a new divisor instance.","Creates a new divisor instance.","Creates a new divisor instance.","Creates a new divisor instance.","Creates a new divisor instance.","Creates a new divisor instance.","","","","","","","","","","","","","","","","","",""],"i":[0,0,0,0,0,0,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6,1,2,3,4,5,6],"f":[0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[[7,1]],[[8,2]],[[9,3]],[[10,4]],[[11,5]],[[12,6]],[[1,13],14],[[2,13],14],[[3,13],14],[[4,13],14],[[5,13],14],[[6,13],14],[[]],[[]],[[]],[[]],[[]],[[]],[1,7],[2,8],[3,9],[4,10],[5,11],[6,12],[[]],[[]],[[]],[[]],[[]],[[]],[7,1],[8,2],[9,3],[10,4],[11,5],[12,6],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],15],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16]],"c":[],"p":[[3,"StrengthReducedU8"],[3,"StrengthReducedU128"],[3,"StrengthReducedU16"],[3,"StrengthReducedU32"],[3,"StrengthReducedU64"],[3,"StrengthReducedUsize"],[15,"u8"],[15,"u128"],[15,"u16"],[15,"u32"],[15,"u64"],[15,"usize"],[3,"Formatter"],[6,"Result"],[4,"Result"],[3,"TypeId"]]},\ "strum":{"doc":"Strum","t":"ISIIIIQESINAKLLLLLLLLLLLKKLKKKLLKLLLLLL","n":["AsStaticRef","COUNT","EnumCount","EnumMessage","EnumProperty","IntoEnumIterator","Iterator","ParseError","VARIANTS","VariantNames","VariantNotFound","additional_attributes","as_static","borrow","borrow_mut","clone","clone_into","description","eq","equivalent","fmt","fmt","from","get_bool","get_detailed_message","get_documentation","get_int","get_message","get_serializations","get_str","hash","into","iter","provide","to_owned","to_string","try_from","try_into","type_id"],"q":[[0,"strum"]],"d":["A cheap reference-to-reference conversion. Used to convert …","","A trait for capturing the number of variants in Enum. This …","Associates additional pieces of information with an Enum. …","EnumProperty is a trait that makes it possible to store …","This trait designates that an Enum can be iterated over. …","","The ParseError enum is a collection of all the possible …","Names of the variants of this enum","A trait for retrieving the names of each variant in Enum. …","","Documentation for Additional Attributes","","","","","","","","","","","Returns the argument unchanged.","","","Get the doc comment associated with a variant if it exists.","","","","","","Calls U::from(self).","","","","","","",""],"i":[0,15,0,0,0,0,16,0,17,0,1,0,18,1,1,1,1,1,1,1,1,1,1,19,20,20,19,20,20,19,1,1,16,1,1,1,1,1,1],"f":[0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[1,1],[[]],[1,2],[[1,1],3],[[],3],[[1,4],[[6,[5]]]],[[1,4],7],[[]],[2,[[8,[3]]]],[[],[[8,[2]]]],[[],[[8,[2]]]],[2,[[8,[9]]]],[[],[[8,[2]]]],[[],[[10,[2]]]],[2,[[8,[2]]]],[[1,11]],[[]],[[]],[12],[[]],[[],13],[[],6],[[],6],[[],14]],"c":[0,12],"p":[[4,"ParseError"],[15,"str"],[15,"bool"],[3,"Formatter"],[3,"Error"],[4,"Result"],[6,"Result"],[4,"Option"],[15,"usize"],[15,"slice"],[8,"Hasher"],[3,"Demand"],[3,"String"],[3,"TypeId"],[8,"EnumCount"],[8,"IntoEnumIterator"],[8,"VariantNames"],[8,"AsStaticRef"],[8,"EnumProperty"],[8,"EnumMessage"]]},\ -"strum_macros":{"doc":"Strum","t":"YYYYYYYYYYYYYY","n":["AsRefStr","AsStaticStr","Display","EnumCount","EnumDiscriminants","EnumIs","EnumIter","EnumMessage","EnumProperty","EnumString","EnumVariantNames","FromRepr","IntoStaticStr","ToString"],"q":[[0,"strum_macros"]],"d":["Converts enum variants to &'static str.","","Converts enum variants to strings.","Add a constant usize equal to the number of variants.","Generate a new type with only the discriminant names.","Generated is_*() methods for each variant. E.g. …","Creates a new type that iterates of the variants of an …","Add a verbose message to an enum variant.","Add custom properties to enum variants.","Converts strings to enum variants based on their name.","Implements Strum::VariantNames which adds an associated …","Add a function to enum that allows accessing variants by …","Implements From<MyEnum> for &'static str on an enum.","implements std::string::ToString on an enum"],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0],"c":[1,13],"p":[]},\ +"strum_macros":{"doc":"Strum","t":"YYYYYYYYYYYYY","n":["AsRefStr","AsStaticStr","Display","EnumCount","EnumDiscriminants","EnumIter","EnumMessage","EnumProperty","EnumString","EnumVariantNames","FromRepr","IntoStaticStr","ToString"],"q":[[0,"strum_macros"]],"d":["Converts enum variants to &'static str.","","Converts enum variants to strings.","Add a constant usize equal to the number of variants.","Generate a new type with only the discriminant names.","Creates a new type that iterates of the variants of an …","Add a verbose message to an enum variant.","Add custom properties to enum variants.","Converts strings to enum variants based on their name.","Implements Strum::VariantNames which adds an associated …","Add a function to enum that allows accessing variants by …","Implements From<MyEnum> for &'static str on an enum.","implements std::string::ToString on en enum"],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0],"c":[1,12],"p":[]},\ "sysinfo":{"doc":"sysinfo ","t":"NNNNDINDIDNDIEDNDNNNNSNNNNDNSDDIDIDNDINNNDIDENNDNNSNENNNNDINNNNNNSDNNNNDNNINNNNNNNKLKLKLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLLLLLLLLLLLLLLLLLLLLLKLLLLLKLLLKLLLKKLLLKLKLKLLLLLLLLLLKLLKLLLKLKLKLKLKLLLLLLLLLLLLLLLLLLLLLLLLLLLKLKLLLLKLMKLMLLLLLLLLLLLLLLLLLLLLLLLLKLKLKLLLLLLLLLLLLLLLLLLLLLLLLLLLKLFLLKLKKLLKLLLLKLKLLLLLLLLLLLLLLLLLLLLLLLLKLLKLKLLLKLKLKLKLKLKLKLKLLKLKKKKKLLLLLKLLLKLLLLLLLLKLLMKLKLKLKLLLLLLLKLKLKLKLLLLLLMKLKKKLLLLLLLKLLLKLLLKLKLLLKLLLLLKLLLKLLLLLKLKLKLKLFKLKLKLMKLLLLLLLLLLLLLLLLLKLKLKLKLKLMKLKLKLKLMKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLKLKLKLLKLKLLKLKLKLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLM","n":["Abort","Alarm","Bus","Child","Component","ComponentExt","Continue","Cpu","CpuExt","CpuRefreshKind","Dead","Disk","DiskExt","DiskKind","DiskUsage","FloatingPointException","Gid","HDD","Hangup","IO","IOT","IS_SUPPORTED","Idle","Illegal","Interrupt","Kill","LoadAvg","LockBlocked","MINIMUM_CPU_UPDATE_INTERVAL","MacAddr","NetworkData","NetworkExt","Networks","NetworksExt","NetworksIter","Parked","Pid","PidExt","Pipe","Poll","Power","Process","ProcessExt","ProcessRefreshKind","ProcessStatus","Profiling","Quit","RefreshKind","Run","SSD","SUPPORTED_SIGNALS","Segv","Signal","Sleep","Stop","Stop","Sys","System","SystemExt","TSTP","TTIN","TTOU","Term","Tracing","Trap","UNSPECIFIED","Uid","UninterruptibleDiskSleep","Unknown","Unknown","Urgent","User","User1","User2","UserExt","VirtualAlarm","Wakekill","Waking","Winch","XCPU","XFSZ","Zombie","as_u32","as_u32","available_memory","available_memory","available_space","available_space","boot_time","boot_time","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","brand","brand","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmd","cmd","cmp","cmp","cmp","cmp","components","components","components","components_list","components_mut","components_mut","cpu","cpu","cpu_usage","cpu_usage","cpu_usage","cpu_usage","cpu_usage","cpus","cpus","critical","critical","cwd","cwd","default","default","default","default","default","default","default","deref","deref","disk_usage","disk_usage","disk_usage","disks","disks","disks","disks_list","disks_mut","disks_mut","distribution_id","distribution_id","effective_group_id","effective_group_id","effective_user_id","effective_user_id","environ","environ","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","errors_on_received","errors_on_received","errors_on_transmitted","errors_on_transmitted","everything","everything","everything","exe","exe","fifteen","file_system","file_system","five","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","free_memory","free_memory","free_swap","free_swap","frequency","frequency","frequency","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_str","from_str","from_str","from_u32","from_u32","get_current_pid","get_user_by_id","get_user_by_id","global_cpu_info","global_cpu_info","group_id","group_id","group_id","group_id","groups","groups","hash","hash","hash","host_name","host_name","id","id","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_iter","into_iter","is_removable","is_removable","is_unspecified","iter","iter","kernel_version","kernel_version","kill","kill","kill_with","kill_with","kind","kind","label","label","load_average","load_average","long_os_version","long_os_version","mac_address","mac_address","max","max","memory","memory","memory","mount_point","mount_point","name","name","name","name","name","name","name","name","name","name","networks","networks","networks","networks_list","networks_mut","networks_mut","new","new","new","new","new","new_all","new_all","new_with_specifics","new_with_specifics","next","one","os_version","os_version","packets_received","packets_received","packets_transmitted","packets_transmitted","parent","parent","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","physical_core_count","physical_core_count","pid","pid","process","process","processes","processes","processes","processes_by_exact_name","processes_by_exact_name","processes_by_name","processes_by_name","read_bytes","received","received","refresh","refresh","refresh","refresh","refresh","refresh","refresh_all","refresh_all","refresh_components","refresh_components","refresh_components_list","refresh_components_list","refresh_cpu","refresh_cpu","refresh_cpu_specifics","refresh_cpu_specifics","refresh_disks","refresh_disks","refresh_disks_list","refresh_disks_list","refresh_memory","refresh_memory","refresh_networks","refresh_networks","refresh_networks_list","refresh_networks_list","refresh_networks_list","refresh_networks_list","refresh_process","refresh_process","refresh_process_specifics","refresh_process_specifics","refresh_processes","refresh_processes","refresh_processes_specifics","refresh_processes_specifics","refresh_specifics","refresh_specifics","refresh_system","refresh_system","refresh_users_list","refresh_users_list","root","root","run_time","run_time","session_id","session_id","set_open_files_limit","sort_disks_by","sort_disks_by","start_time","start_time","status","status","tasks","temperature","temperature","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","total_errors_on_received","total_errors_on_received","total_errors_on_transmitted","total_errors_on_transmitted","total_memory","total_memory","total_packets_received","total_packets_received","total_packets_transmitted","total_packets_transmitted","total_read_bytes","total_received","total_received","total_space","total_space","total_swap","total_swap","total_transmitted","total_transmitted","total_written_bytes","transmitted","transmitted","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","uptime","uptime","used_memory","used_memory","used_swap","used_swap","user","user_id","user_id","users","users","users_list","vendor_id","vendor_id","virtual_memory","virtual_memory","wait","wait","with_components","with_components_list","with_cpu","with_cpu","with_cpu_usage","with_disk_usage","with_disks","with_disks_list","with_frequency","with_memory","with_networks","with_networks_list","with_processes","with_user","with_users_list","without_components","without_components_list","without_cpu","without_cpu","without_cpu_usage","without_disk_usage","without_disks","without_disks_list","without_frequency","without_memory","without_networks","without_networks_list","without_processes","without_user","without_users_list","written_bytes"],"q":[[0,"sysinfo"]],"d":["Abort signal from C abort function.","Timer signal from C alarm function.","Bus error (bad memory access).","Child stopped or terminated.","Struct containing a component information (temperature and …","Getting a component temperature information.","Continue if stopped.","Struct containing information of a CPU.","Contains all the methods of the Cpu struct.","Used to determine what you want to refresh specifically on …","Linux","Struct containing a disk information.","Contains all the methods of the Disk struct.","Enum containing the different supported kinds of disks.","Type containing read and written bytes.","Floating point exception.","A group id wrapping a platform specific type.","HDD type.","Hangup detected on controlling terminal or death of …","I/O now possible.","IOT trap. A synonym for SIGABRT.","Returns true if this OS is supported. Please refer to the …","Linux","Illegal instruction.","Interrupt from keyboard.","Kill signal.","A struct representing system load average value.","FreeBSD","This is the minimum interval time used internally by …","MAC address for network interface.","Contains network interface information.","Getting volume of received and transmitted data.","Networks interfaces.","Interacting with network interfaces.","Iterator over network interfaces.","Linux","Process ID.","Trait to have a common conversions for the Pid type.","Broken pipe: write to pipe with no readers.","Pollable event (Sys V). Synonym for IO","Power failure (System V).","Struct containing information of a process.","Contains all the methods of the Process struct.","Used to determine what you want to refresh specifically on …","Enum describing the different status of a process.","Profiling time expired.","Quit from keyboard.","Used to determine what you want to refresh specifically on …","Running.","SSD type.","Returns the list of the supported signals on this system …","Invalid memory reference.","An enum representing signals on UNIX-like systems.","Linux","Stop process.","Linux","Bad argument to routine (SVr4).","Structs containing system’s information.","Contains all the methods of the System type.","Stop typed at terminal.","Terminal input for background process.","Terminal output for background process.","Termination signal.","Linux","Trace/breakpoint trap.","A MacAddr with all bytes set to 0.","A user id wrapping a platform specific type.","Linux","Unknown type.","Unknown.","Urgent condition on socket.","Type containing user information.","User-defined signal 1.","User-defined signal 2.","Getting information for a user.","Virtual alarm clock.","Linux","Linux","Windows resize signal.","CPU time limit exceeded.","File size limit exceeded.","Linux/FreeBSD/macOS","Allows to convert Pid into u32.","","Returns the amount of available RAM in bytes.","","Returns the available disk size, in bytes.","","Returns the time (in seconds) when the system booted since …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the CPU’s brand.","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the command line.","","","","","","Returns the components list.","","Returns the value of the “components” refresh kind.","Returns the value of the “components_list” refresh …","Returns a mutable components list.","","Returns the value of the “cpu” refresh kind.","Returns the value of the “cpu” refresh kind.","Returns the total CPU usage (in %). Notice that it might …","Returns this CPU’s usage.","","","Returns the value of the “cpu_usage” refresh kind.","Returns the list of the CPUs.","","Returns the highest temperature before the component halts …","","Returns the current working directory.","","","","","","","","","","","Returns number of bytes read and written to disk.","","Returns the value of the “disk_usage” refresh kind.","Returns the disks list.","","Returns the value of the “disks” refresh kind.","Returns the value of the “disks_list” refresh kind.","Returns the disks list.","","Returns the distribution id as defined by os-release, or …","","Returns the effective group ID of the process.","","Returns the user ID of the effective owner of this process …","","Returns the environment variables of the process.","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the number of incoming errors since the last …","","Returns the number of outcoming errors since the last …","","Creates a new ProcessRefreshKind with every refresh set to …","Creates a new CpuRefreshKind with every refresh set to true…","Creates a new RefreshKind with every refresh set to true/…","Returns the path to the process.","","Average load within fifteen minutes.","Returns the file system used on this disk (so for example: …","","Average load within five minutes.","","","","","","","","","","","","","","","","","","","","","","","","","Returns the amount of free RAM in bytes.","","Returns the amount of free SWAP in bytes.","","Returns the CPU’s frequency.","Returns the CPU frequency in MHz.","Returns the value of the “frequency” refresh kind.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Allows to convert a u32 into Pid.","","Returns the pid for the current process.","Returns the User matching the given user_id.","Returns the User matching the given user_id.","Returns “global” CPUs information (aka the addition of …","","Returns the process group ID of the process.","Return the group id of the user.","","","Returns the groups of the user.","","","","","Returns the system hostname based off DNS","","Return the user id of the user.","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","","Returns true if the disk is removable.","","Checks if this MacAddr has all bytes equal to 0.","Returns an iterator over the network interfaces.","","Returns the system’s kernel version.","","Sends Signal::Kill to the process (which is the only …","Sends Signal::Kill to the process (which is the only …","Sends the given signal to the process. If the signal doesn…","","Returns the kind of disk.","","Returns the label of the component.","","Returns the system load average value.","","Returns the system long os version (e.g “MacOS 11.2 …","","Returns the MAC address associated to current interface.","","Returns the maximum temperature of the component (in …","","Returns the memory usage (in bytes).","","Returns the value of the “memory” refresh kind.","Returns the mount point of the disk (/ for example).","","Returns the disk name.","Returns the name of the process.","Returns this CPU’s name.","Returns the system name.","Returns the name of the user.","","","","","","Returns the network interfaces object.","","Returns the value of the “networks” refresh kind.","Returns the value of the “networks_list” refresh kind.","Returns a mutable access to network interfaces.","","Creates a new System instance with nothing loaded. If you …","Creates a new System instance with nothing loaded. If you …","Creates a new ProcessRefreshKind with every refresh set to …","Creates a new CpuRefreshKind with every refresh set to …","Creates a new RefreshKind with every refresh set to false/…","Creates a new System instance with everything loaded.","Creates a new System instance with everything loaded.","Creates a new System instance and refresh the data …","","","Average load within one minute.","Returns the system version (e.g. for MacOS this will …","","Returns the number of incoming packets since the last …","","Returns the number of outcoming packets since the last …","","Returns the parent PID.","","","","","","","","Returns the number of physical cores on the CPU or None if …","","Returns the PID of the process.","","Returns the process corresponding to the given pid or None …","","Returns the process list.","","Returns the value of the “processes” refresh kind.","Returns an iterator of processes with exactly the given …","Returns an iterator of processes with exactly the given …","Returns an iterator of process containing the given name.","Returns an iterator of process containing the given name.","Number of read bytes since the last refresh.","Returns the number of received bytes since the last …","","Updates the disk’ information.","Refreshes the network interfaces’ content.","Refreshes component.","","","","Refreshes all system, processes, disks and network …","Refreshes all system, processes, disks and network …","Refreshes components’ temperature.","Refreshes components’ temperature.","Refreshes components list.","","Refreshes CPUs information.","Refreshes CPUs information.","Refreshes CPUs specific information.","","Refreshes the listed disks’ information.","Refreshes the listed disks’ information.","The disk list will be emptied then completely recomputed.","","Refreshes RAM and SWAP usage.","","Refreshes networks data.","Refreshes networks data.","Refreshes the network interfaces list.","The network list will be updated: removing not existing …","The network list will be updated: removing not existing …","","Refreshes only the process corresponding to pid. Returns …","Refreshes only the process corresponding to pid. Returns …","Refreshes only the process corresponding to pid. Returns …","","Gets all processes and updates their information.","Gets all processes and updates their information.","Gets all processes and updates the specified information.","","Refreshes according to the given RefreshKind. It calls the …","Refreshes according to the given RefreshKind. It calls the …","Refreshes system information (RAM, swap, CPU usage and …","Refreshes system information (RAM, swap, CPU usage and …","Refreshes users list.","","Returns the path of the root directory.","","Returns for how much time the process has been running (in …","","Returns the session ID for the current process or None if …","","This function is only used on Linux targets, on the other …","Sort the disk list with the provided callback.","","Returns the time where the process was started (in …","","Returns the status of the process.","","Tasks run by this process.","Returns the temperature of the component (in celsius …","","","","","","","","","","","","","","","","","","Returns the total number of incoming errors.","","Returns the total number of outcoming errors.","","Returns the RAM size in bytes.","","Returns the total number of incoming packets.","","Returns the total number of outcoming packets.","","Total number of read bytes.","Returns the total number of received bytes.","","Returns the total disk size, in bytes.","","Returns the SWAP size in bytes.","","Returns the total number of transmitted bytes.","","Total number of written bytes.","Returns the number of transmitted bytes since the last …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns system uptime (in seconds).","","Returns the amount of used RAM in bytes.","","Returns the amount of used SWAP in bytes.","","Returns the value of the “user” refresh kind. This …","Returns the ID of the owner user of this process or None …","","Returns the users list.","","Returns the value of the “users_list” refresh kind.","Returns the CPU’s vendor id.","","Returns the virtual memory usage (in bytes).","","Wait for process termination.","","Sets the value of the “components” refresh kind to true…","Sets the value of the “components_list” refresh kind …","Sets the value of the “cpu” refresh kind to true.","Sets the value of the “cpu” refresh kind to true.","Sets the value of the “cpu_usage” refresh kind to true.","Sets the value of the “disk_usage” refresh kind to true…","Sets the value of the “disks” refresh kind to true.","Sets the value of the “disks_list” refresh kind to true…","Sets the value of the “frequency” refresh kind to true.","Sets the value of the “memory” refresh kind to true.","Sets the value of the “networks” refresh kind to true.","Sets the value of the “networks_list” refresh kind to …","Sets the value of the “processes” refresh kind to true.","Sets the value of the “user” refresh kind to true.","Sets the value of the “users_list” refresh kind to true…","Sets the value of the “components” refresh kind to …","Sets the value of the “components_list” refresh kind …","Sets the value of the “cpu” refresh kind to false.","Sets the value of the “cpu” refresh kind to false.","Sets the value of the “cpu_usage” refresh kind to false…","Sets the value of the “disk_usage” refresh kind to …","Sets the value of the “disks” refresh kind to false.","Sets the value of the “disks_list” refresh kind to …","Sets the value of the “frequency” refresh kind to false…","Sets the value of the “memory” refresh kind to false.","Sets the value of the “networks” refresh kind to false.","Sets the value of the “networks_list” refresh kind to …","Sets the value of the “processes” refresh kind to false…","Sets the value of the “user” refresh kind to false.","Sets the value of the “users_list” refresh kind to …","Number of written bytes since the last refresh."],"i":[12,12,12,12,0,0,12,0,0,0,17,0,0,0,0,12,0,11,12,12,12,45,17,12,12,12,0,17,45,0,0,0,0,0,0,17,0,0,12,12,12,0,0,0,0,12,12,0,17,11,45,12,0,17,12,17,12,0,0,12,12,12,12,17,12,18,0,17,11,17,12,0,12,12,0,12,17,17,12,12,12,17,46,2,45,4,47,5,45,4,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,15,23,16,17,18,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,15,23,16,17,18,48,7,2,8,9,10,11,12,13,14,15,16,17,18,2,8,9,10,11,12,13,14,15,16,17,18,49,21,2,14,15,23,45,4,10,10,45,4,8,10,49,48,7,21,9,45,4,50,24,49,21,4,24,8,9,10,13,16,14,15,49,21,8,45,4,10,10,45,4,45,4,49,21,49,21,49,21,5,2,8,9,10,11,12,14,15,23,16,17,18,5,2,8,9,10,11,12,14,15,23,16,17,18,51,29,51,29,8,9,10,49,21,13,47,5,13,7,33,29,21,4,24,5,2,2,8,9,10,11,12,12,13,14,15,23,16,17,17,18,18,45,4,45,4,48,7,9,37,7,33,29,21,4,24,5,2,2,8,9,10,11,12,13,14,15,23,16,17,18,2,14,15,46,2,0,45,45,45,4,49,52,21,23,52,23,2,14,15,45,4,52,23,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,15,23,16,17,18,37,33,47,5,18,53,33,45,4,49,49,49,21,47,5,50,24,45,4,45,4,51,29,50,24,49,21,10,47,5,47,49,48,45,52,7,21,4,5,23,45,4,10,10,45,4,45,45,8,9,10,45,45,45,4,37,13,45,4,51,29,51,29,49,21,2,12,14,15,23,16,45,4,49,21,45,4,45,4,10,45,45,45,45,16,51,29,47,53,50,33,24,5,45,45,45,45,45,4,45,45,45,4,45,45,45,4,45,4,45,45,53,45,45,33,45,45,45,4,45,45,45,4,45,45,45,45,45,4,49,21,49,21,49,21,0,45,4,49,21,49,21,21,50,24,2,8,9,10,11,12,13,14,15,16,17,18,2,12,17,18,51,29,51,29,45,4,51,29,51,29,16,51,29,47,5,45,4,51,29,16,51,29,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,14,15,15,23,16,17,18,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,15,23,16,17,18,37,7,33,29,21,4,24,5,2,8,9,10,11,12,13,14,15,23,16,17,18,45,4,45,4,45,4,8,49,21,45,4,10,48,7,49,21,49,21,10,10,8,10,9,8,10,10,9,10,10,10,10,8,10,10,10,8,10,9,8,10,10,9,10,10,10,10,8,10,16],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],1],[2,1],[[],3],[4,3],[[],3],[5,3],[[],3],[4,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],6],[7,6],[2,2],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],[[20,[19]]]],[21,[[20,[19]]]],[[2,2],22],[[14,14],22],[[15,15],22],[[23,23],22],[[],[[20,[24]]]],[4,[[20,[24]]]],[10,25],[10,25],[[],[[20,[24]]]],[4,[[20,[24]]]],[8,25],[10,[[26,[9]]]],[[],27],[[],27],[7,27],[21,27],[9,25],[[],[[20,[7]]]],[4,[[20,[7]]]],[[],[[26,[27]]]],[24,[[26,[27]]]],[[],28],[21,28],[[],4],[[],24],[[],8],[[],9],[[],10],[[],13],[[],16],[14],[15],[[],16],[21,16],[8,25],[[],[[20,[5]]]],[4,[[20,[5]]]],[10,25],[10,25],[[],[[20,[5]]]],[4,[[20,[5]]]],[[],19],[4,19],[[],[[26,[15]]]],[21,[[26,[15]]]],[[],[[26,[14]]]],[21,[[26,[14]]]],[[],[[20,[19]]]],[21,[[20,[19]]]],[[5,5],25],[[2,2],25],[[8,8],25],[[9,9],25],[[10,10],25],[[11,11],25],[[12,12],25],[[14,14],25],[[15,15],25],[[23,23],25],[[16,16],25],[[17,17],25],[[18,18],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],25],[[],3],[29,3],[[],3],[29,3],[[],8],[[],9],[[],10],[[],28],[21,28],0,[[],[[20,[30]]]],[5,[[20,[30]]]],0,[[7,31],32],[[33,31],32],[[29,31],32],[[21,31],32],[[4,31],32],[[24,31],32],[[5,31],32],[[2,31],32],[[2,31],32],[[8,31],32],[[9,31],32],[[10,31],32],[[11,31],32],[[12,31],32],[[12,31],32],[[13,31],32],[[14,31],32],[[15,31],32],[[23,31],32],[[16,31],32],[[17,31],32],[[17,31],32],[[18,31],32],[[18,31],32],[[],3],[4,3],[[],3],[4,3],[[],3],[7,3],[9,25],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[34,2],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[6,[[35,[2]]]],[6,[[35,[14]]]],[6,[[35,[15]]]],[1],[1,2],[[],[[35,[2,6]]]],[14,[[26,[23]]]],[14,[[26,[23]]]],[[],7],[4,7],[[],[[26,[15]]]],[[],15],[21,[[26,[15]]]],[23,15],[[],[[20,[19]]]],[23,[[20,[19]]]],[[2,36]],[[14,36]],[[15,36]],[[],[[26,[19]]]],[4,[[26,[19]]]],[[],14],[23,14],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[33],[[],25],[5,25],[18,25],[[],37],[33,37],[[],[[26,[19]]]],[4,[[26,[19]]]],[[],25],[[],25],[12,[[26,[25]]]],[[21,12],[[26,[25]]]],[[],11],[5,11],[[],6],[24,6],[[],13],[4,13],[[],[[26,[19]]]],[4,[[26,[19]]]],[[],18],[29,18],[[],27],[24,27],[[],3],[21,3],[10,25],[[],28],[5,28],[[],38],[[],6],[[],6],[[],[[26,[19]]]],[[],6],[7,6],[21,6],[4,[[26,[19]]]],[5,38],[23,6],[[],33],[4,33],[10,25],[10,25],[[],33],[4,33],[[]],[[]],[[],8],[[],9],[[],10],[[]],[[]],[10],[10,4],[37,26],0,[[],[[26,[19]]]],[4,[[26,[19]]]],[[],3],[29,3],[[],3],[29,3],[[],[[26,[2]]]],[21,[[26,[2]]]],[[2,2],[[26,[22]]]],[[12,12],[[26,[22]]]],[[14,14],[[26,[22]]]],[[15,15],[[26,[22]]]],[[23,23],[[26,[22]]]],[[16,16],[[26,[22]]]],[[],[[26,[34]]]],[4,[[26,[34]]]],[[],2],[21,2],[2,[[26,[21]]]],[[4,2],[[26,[21]]]],[[],[[39,[2,21]]]],[4,[[39,[2,21]]]],[10,[[26,[8]]]],[6,[[41,[40]]]],[6,[[41,[40]]]],[6,[[41,[40]]]],[6,[[41,[40]]]],0,[[],3],[29,3],[[],25],[[]],[[]],[33],[24],[5,25],[[]],[[]],[[]],[[]],[[]],[4],[[]],[[]],[9],[[4,9]],[[]],[[]],[[]],[4],[[]],[4],[[]],[[]],[[]],[[]],[[]],[33],[2,25],[2,25],[[2,8],25],[[4,2,8],25],[[]],[[]],[8],[[4,8]],[10],[10],[[]],[[]],[[]],[4],[[],28],[21,28],[[],3],[21,3],[[],[[26,[2]]]],[21,[[26,[2]]]],[42,25],[43],[[4,43]],[[],3],[21,3],[[],17],[21,17],0,[[],27],[24,27],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],19],[[],19],[[],19],[[],19],[[],3],[29,3],[[],3],[29,3],[[],3],[4,3],[[],3],[29,3],[[],3],[29,3],0,[[],3],[29,3],[[],3],[5,3],[[],3],[4,3],[[],3],[29,3],0,[[],3],[29,3],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[34,[[35,[14]]]],[[],35],[34,[[35,[15]]]],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],35],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],44],[[],3],[4,3],[[],3],[4,3],[[],3],[4,3],[8,25],[[],[[26,[14]]]],[21,[[26,[14]]]],[[],[[20,[23]]]],[4,[[20,[23]]]],[10,25],[[],6],[7,6],[[],3],[21,3],[[]],[21],[10,10],[10,10],[8,8],[[10,9],10],[9,9],[8,8],[10,10],[10,10],[9,9],[10,10],[10,10],[10,10],[[10,8],10],[8,8],[10,10],[10,10],[10,10],[8,8],[10,10],[9,9],[8,8],[10,10],[10,10],[9,9],[10,10],[10,10],[10,10],[10,10],[8,8],[10,10],0],"c":[],"p":[[15,"u32"],[3,"Pid"],[15,"u64"],[3,"System"],[3,"Disk"],[15,"str"],[3,"Cpu"],[3,"ProcessRefreshKind"],[3,"CpuRefreshKind"],[3,"RefreshKind"],[4,"DiskKind"],[4,"Signal"],[3,"LoadAvg"],[3,"Uid"],[3,"Gid"],[3,"DiskUsage"],[4,"ProcessStatus"],[3,"MacAddr"],[3,"String"],[15,"slice"],[3,"Process"],[4,"Ordering"],[3,"User"],[3,"Component"],[15,"bool"],[4,"Option"],[15,"f32"],[3,"Path"],[3,"NetworkData"],[15,"u8"],[3,"Formatter"],[6,"Result"],[3,"Networks"],[15,"usize"],[4,"Result"],[8,"Hasher"],[3,"NetworksIter"],[3,"OsStr"],[3,"HashMap"],[8,"Iterator"],[3,"Box"],[15,"isize"],[8,"FnMut"],[3,"TypeId"],[8,"SystemExt"],[8,"PidExt"],[8,"DiskExt"],[8,"CpuExt"],[8,"ProcessExt"],[8,"ComponentExt"],[8,"NetworkExt"],[8,"UserExt"],[8,"NetworksExt"]]},\ "target_features":{"doc":"Target features","t":"NENNRDDNNNNIDDDNNNLLLLLLLLLLLLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLAAAAAAAAA","n":["AArch64","Architecture","Arm","Bpf","CURRENT_TARGET","Feature","FeaturesIter","Hexagon","Mips","PowerPC","RiscV","SimdType","Target","UnknownCpu","UnknownFeature","Unsupported","Wasm","X86","architecture","architecture","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","description","docs","eq","eq","eq","features","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_cpu","from_str","implies","into","into","into","into","into","into","into_iter","name","new","new","next","suggested_simd_width","supports_feature","supports_feature_str","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","with_feature","with_feature_str","aarch64","arm","bpf","hexagon","mips","powerpc","riscv","wasm","x86"],"q":[[0,"target_features"],[93,"target_features::docs"]],"d":["AArch64","A target architecture.","Arm","BPF","The target of the current build.","A target feature.","Iterator returned by Target::features.","Hexagon","MIPS","PowerPC","RISC-V","Types which can be SIMD vector elements.","A target architecture with optional features.","Returned by Target::from_cpu when the requested CPU can’…","Returned by Feature::new when the requested feature can’…","Another target, which doesn’t have features","WASM","x86 and x86-64","Get the architecture this feature is for.","Returns the target architecture.","","","","","","","","","","","","","","","","","","Get a human-readable description of the feature.","List of features available for each architecture.","","","","Returns an iterator over the features.","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Create a target based on a particular CPU.","Create a new Architecture from its name.","Return all features which are implied by the existence of …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Get the name of the feature.","Look up a feature.","Create a target with no specified features.","","Returns a suggested number of elements for a SIMD vector …","Returns whether the target supports the specified feature.","Returns whether the target supports the specified feature.","","","","","","","","","","","","","","","","","","","Add a feature to the target.","Add a feature to the target.","aarch64 documentation","arm documentation","bpf documentation","hexagon documentation","mips documentation","powerpc documentation","riscv documentation","wasm documentation","x86 documentation"],"i":[2,0,2,2,0,0,0,2,2,2,2,0,0,0,0,2,2,2,1,3,8,2,4,5,1,3,8,2,4,5,1,3,2,4,5,1,3,1,0,2,1,3,3,2,4,4,5,5,1,3,8,2,4,5,1,3,3,2,1,8,2,4,5,1,3,8,1,1,3,8,3,3,3,8,2,4,5,1,3,8,2,4,5,1,3,8,2,4,5,1,3,3,3,0,0,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1,2],[3,2],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[2,2],[4,4],[5,5],[1,1],[3,3],[1,6],0,[[2,2],7],[[1,1],7],[[3,3],7],[3,8],[[2,9],10],[[4,9],10],[[4,9],10],[[5,9],10],[[5,9],10],[[1,9],[[12,[11]]]],[[3,9],[[12,[11]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[2,6],[[12,[3,5]]]],[6,2],[1,[[13,[1]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,6],[[2,6],[[12,[1,4]]]],[2,3],[8,14],[3,[[14,[15]]]],[[3,1],7],[[3,6],7],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],16],[[],16],[[],16],[[],16],[[],16],[[],16],[[3,1],3],[[3,6],3],0,0,0,0,0,0,0,0,0],"c":[],"p":[[3,"Feature"],[4,"Architecture"],[3,"Target"],[3,"UnknownFeature"],[3,"UnknownCpu"],[15,"str"],[15,"bool"],[3,"FeaturesIter"],[3,"Formatter"],[6,"Result"],[3,"Error"],[4,"Result"],[15,"slice"],[4,"Option"],[15,"usize"],[3,"TypeId"]]},\ "thiserror":{"doc":"github crates-io docs-rs","t":"Y","n":["Error"],"q":[[0,"thiserror"]],"d":[""],"i":[0],"f":[0],"c":[],"p":[]},\ diff --git a/src-files.js b/src-files.js index fb219a9e6b6d..b6602723eda8 100644 --- a/src-files.js +++ b/src-files.js @@ -197,7 +197,7 @@ var srcIndex = JSON.parse('{\ "streaming_iterator":["",[],["lib.rs","slice.rs","sources.rs"]],\ "strength_reduce":["",[],["lib.rs","long_division.rs","long_multiplication.rs"]],\ "strum":["",[],["additional_attributes.rs","lib.rs"]],\ -"strum_macros":["",[["helpers",[],["case_style.rs","metadata.rs","mod.rs","type_props.rs","variant_props.rs"]],["macros",[["strings",[],["as_ref_str.rs","display.rs","from_string.rs","mod.rs","to_string.rs"]]],["enum_count.rs","enum_discriminants.rs","enum_is.rs","enum_iter.rs","enum_messages.rs","enum_properties.rs","enum_variant_names.rs","from_repr.rs","mod.rs"]]],["lib.rs"]],\ +"strum_macros":["",[["helpers",[],["case_style.rs","metadata.rs","mod.rs","type_props.rs","variant_props.rs"]],["macros",[["strings",[],["as_ref_str.rs","display.rs","from_string.rs","mod.rs","to_string.rs"]]],["enum_count.rs","enum_discriminants.rs","enum_iter.rs","enum_messages.rs","enum_properties.rs","enum_variant_names.rs","from_repr.rs","mod.rs"]]],["lib.rs"]],\ "sysinfo":["",[["linux",[],["component.rs","cpu.rs","disk.rs","mod.rs","network.rs","process.rs","system.rs","utils.rs"]]],["common.rs","debug.rs","lib.rs","macros.rs","network.rs","network_helper_nix.rs","system.rs","traits.rs","users.rs","utils.rs"]],\ "target_features":["",[],["lib.rs","simd.rs"]],\ "thiserror":["",[],["aserror.rs","display.rs","lib.rs","provide.rs"]],\ diff --git a/src/strum_macros/helpers/case_style.rs.html b/src/strum_macros/helpers/case_style.rs.html index de495f15b795..0fc0f560759d 100644 --- a/src/strum_macros/helpers/case_style.rs.html +++ b/src/strum_macros/helpers/case_style.rs.html @@ -1,4 +1,4 @@ -case_style.rs - source
1
+case_style.rs - source
1
 2
 3
 4
@@ -115,13 +115,8 @@
 115
 116
 117
-118
-119
-120
-121
-122
 
use heck::{
-    ToKebabCase, ToLowerCamelCase, ToShoutySnakeCase, ToSnakeCase, ToTitleCase, ToUpperCamelCase, ToTrainCase,
+    ToKebabCase, ToLowerCamelCase, ToShoutySnakeCase, ToSnakeCase, ToTitleCase, ToUpperCamelCase,
 };
 use std::str::FromStr;
 use syn::{
@@ -142,7 +137,6 @@
     LowerCase,
     ScreamingKebabCase,
     PascalCase,
-    TrainCase,
 }
 
 const VALID_CASE_STYLES: &[&str] = &[
@@ -156,7 +150,6 @@
     "UPPERCASE",
     "title_case",
     "mixed_case",
-    "Train-Case",
 ];
 
 impl Parse for CaseStyle {
@@ -193,7 +186,6 @@
             "mixed_case" => CaseStyle::MixedCase,
             "lowercase" => CaseStyle::LowerCase,
             "UPPERCASE" => CaseStyle::UpperCase,
-            "Train-Case" => CaseStyle::TrainCase,
             _ => return Err(()),
         })
     }
@@ -217,7 +209,6 @@
                 CaseStyle::UpperCase => ident_string.to_uppercase(),
                 CaseStyle::LowerCase => ident_string.to_lowercase(),
                 CaseStyle::ScreamingKebabCase => ident_string.to_kebab_case().to_uppercase(),
-                CaseStyle::TrainCase => ident_string.to_train_case(),
                 CaseStyle::CamelCase => {
                     let camel_case = ident_string.to_upper_camel_case();
                     let mut pascal = String::with_capacity(camel_case.len());
@@ -240,6 +231,5 @@
     let id = Ident::new("test_me", proc_macro2::Span::call_site());
     assert_eq!("testMe", id.convert_case(Some(CaseStyle::CamelCase)));
     assert_eq!("TestMe", id.convert_case(Some(CaseStyle::PascalCase)));
-    assert_eq!("Test-Me", id.convert_case(Some(CaseStyle::TrainCase)));
 }
 
\ No newline at end of file diff --git a/src/strum_macros/helpers/metadata.rs.html b/src/strum_macros/helpers/metadata.rs.html index d0f53a87bb2d..860ed2ec6f08 100644 --- a/src/strum_macros/helpers/metadata.rs.html +++ b/src/strum_macros/helpers/metadata.rs.html @@ -1,4 +1,4 @@ -metadata.rs - source
1
+metadata.rs - source
1
 2
 3
 4
@@ -274,14 +274,48 @@
 274
 275
 276
-
use proc_macro2::TokenStream;
+277
+278
+279
+280
+281
+282
+283
+284
+285
+286
+287
+288
+289
+290
+291
+292
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303
+304
+305
+306
+307
+308
+309
+
use proc_macro2::{Span, TokenStream};
 use syn::{
     parenthesized,
     parse::{Parse, ParseStream},
     parse2, parse_str,
     punctuated::Punctuated,
-    Attribute, DeriveInput, Expr, ExprLit, Ident, Lit, LitBool, LitStr, Meta, MetaNameValue, Path,
-    Token, Variant, Visibility,
+    spanned::Spanned,
+    Attribute, DeriveInput, Ident, Lit, LitBool, LitStr, Meta, MetaNameValue, Path, Token, Variant,
+    Visibility,
 };
 
 use super::case_style::CaseStyle;
@@ -351,6 +385,17 @@
     }
 }
 
+impl Spanned for EnumMeta {
+    fn span(&self) -> Span {
+        match self {
+            EnumMeta::SerializeAll { kw, .. } => kw.span(),
+            EnumMeta::AsciiCaseInsensitive(kw) => kw.span(),
+            EnumMeta::Crate { kw, .. } => kw.span(),
+            EnumMeta::UsePhf(use_phf) => use_phf.span(),
+        }
+    }
+}
+
 pub enum EnumDiscriminantsMeta {
     Derive { kw: kw::derive, paths: Vec<Path> },
     Name { kw: kw::name, name: Ident },
@@ -364,7 +409,7 @@
             let kw = input.parse()?;
             let content;
             parenthesized!(content in input);
-            let paths = content.parse_terminated(Path::parse, Token![,])?;
+            let paths = content.parse_terminated::<_, Token![,]>(Path::parse)?;
             Ok(EnumDiscriminantsMeta::Derive {
                 kw,
                 paths: paths.into_iter().collect(),
@@ -391,6 +436,17 @@
     }
 }
 
+impl Spanned for EnumDiscriminantsMeta {
+    fn span(&self) -> Span {
+        match self {
+            EnumDiscriminantsMeta::Derive { kw, .. } => kw.span,
+            EnumDiscriminantsMeta::Name { kw, .. } => kw.span,
+            EnumDiscriminantsMeta::Vis { kw, .. } => kw.span,
+            EnumDiscriminantsMeta::Other { path, .. } => path.span(),
+        }
+    }
+}
+
 pub trait DeriveInputExt {
     /// Get all the strum metadata associated with an enum.
     fn get_metadata(&self) -> syn::Result<Vec<EnumMeta>>;
@@ -481,7 +537,7 @@
             let kw = input.parse()?;
             let content;
             parenthesized!(content in input);
-            let props = content.parse_terminated(Prop::parse, Token![,])?;
+            let props = content.parse_terminated::<_, Token![,]>(Prop::parse)?;
             Ok(VariantMeta::Props {
                 kw,
                 props: props
@@ -509,6 +565,22 @@
     }
 }
 
+impl Spanned for VariantMeta {
+    fn span(&self) -> Span {
+        match self {
+            VariantMeta::Message { kw, .. } => kw.span,
+            VariantMeta::DetailedMessage { kw, .. } => kw.span,
+            VariantMeta::Documentation { value } => value.span(),
+            VariantMeta::Serialize { kw, .. } => kw.span,
+            VariantMeta::ToString { kw, .. } => kw.span,
+            VariantMeta::Disabled(kw) => kw.span,
+            VariantMeta::Default(kw) => kw.span,
+            VariantMeta::AsciiCaseInsensitive { kw, .. } => kw.span,
+            VariantMeta::Props { kw, .. } => kw.span,
+        }
+    }
+}
+
 pub trait VariantExt {
     /// Get all the metadata associated with an enum variant.
     fn get_metadata(&self) -> syn::Result<Vec<VariantMeta>>;
@@ -519,32 +591,26 @@
         let result = get_metadata_inner("strum", &self.attrs)?;
         self.attrs
             .iter()
-            .filter(|attr| attr.path().is_ident("doc"))
+            .filter(|attr| attr.path.is_ident("doc"))
             .try_fold(result, |mut vec, attr| {
                 if let Meta::NameValue(MetaNameValue {
-                    value:
-                        Expr::Lit(ExprLit {
-                            lit: Lit::Str(value),
-                            ..
-                        }),
+                    lit: Lit::Str(value),
                     ..
-                }) = &attr.meta
-                {
-                    vec.push(VariantMeta::Documentation {
-                        value: value.clone(),
-                    })
+                }) = attr.parse_meta()?
+                {
+                    vec.push(VariantMeta::Documentation { value })
                 }
                 Ok(vec)
             })
     }
 }
 
-fn get_metadata_inner<'a, T: Parse>(
+fn get_metadata_inner<'a, T: Parse + Spanned>(
     ident: &str,
     it: impl IntoIterator<Item = &'a Attribute>,
 ) -> syn::Result<Vec<T>> {
     it.into_iter()
-        .filter(|attr| attr.path().is_ident(ident))
+        .filter(|attr| attr.path.is_ident(ident))
         .try_fold(Vec::new(), |mut vec, attr| {
             vec.extend(attr.parse_args_with(Punctuated::<T, Token![,]>::parse_terminated)?);
             Ok(vec)
diff --git a/src/strum_macros/helpers/mod.rs.html b/src/strum_macros/helpers/mod.rs.html
index ebfa92f7acad..4d9cd537000f 100644
--- a/src/strum_macros/helpers/mod.rs.html
+++ b/src/strum_macros/helpers/mod.rs.html
@@ -1,4 +1,4 @@
-mod.rs - source
1
+mod.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/helpers/type_props.rs.html b/src/strum_macros/helpers/type_props.rs.html
index 968b9b5c6b31..6ad9abeadc45 100644
--- a/src/strum_macros/helpers/type_props.rs.html
+++ b/src/strum_macros/helpers/type_props.rs.html
@@ -1,4 +1,4 @@
-type_props.rs - source
1
+type_props.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/helpers/variant_props.rs.html b/src/strum_macros/helpers/variant_props.rs.html
index 1d57e2e6592f..5065b35c89a6 100644
--- a/src/strum_macros/helpers/variant_props.rs.html
+++ b/src/strum_macros/helpers/variant_props.rs.html
@@ -1,4 +1,4 @@
-variant_props.rs - source
1
+variant_props.rs - source
1
 2
 3
 4
@@ -152,7 +152,7 @@
     pub documentation: Vec<LitStr>,
     pub string_props: Vec<(LitStr, LitStr)>,
     serialize: Vec<LitStr>,
-    pub to_string: Option<LitStr>,
+    to_string: Option<LitStr>,
     ident: Option<Ident>,
 }
 
diff --git a/src/strum_macros/lib.rs.html b/src/strum_macros/lib.rs.html
index aef9ba8bd21f..30e89015eb94 100644
--- a/src/strum_macros/lib.rs.html
+++ b/src/strum_macros/lib.rs.html
@@ -1,4 +1,4 @@
-lib.rs - source
1
+lib.rs - source
1
 2
 3
 4
@@ -753,31 +753,6 @@
 753
 754
 755
-756
-757
-758
-759
-760
-761
-762
-763
-764
-765
-766
-767
-768
-769
-770
-771
-772
-773
-774
-775
-776
-777
-778
-779
-780
 
//! # Strum
 //!
 //! Strum is a set of macros and traits for working with
@@ -955,7 +930,7 @@
 /// use strum::VariantNames;
 ///
 /// #[derive(Debug, EnumString, EnumVariantNames)]
-/// #[strum(serialize_all = "kebab-case")]
+/// #[strum(serialize_all = "kebab_case")]
 /// enum Color {
 ///     Red,
 ///     Blue,
@@ -1033,7 +1008,7 @@
     toks.into()
 }
 
-/// implements `std::string::ToString` on an enum
+/// implements `std::string::ToString` on en enum
 ///
 /// ```
 /// // You need to bring the ToString trait into scope to use it
@@ -1124,7 +1099,7 @@
 /// Creates a new type that iterates of the variants of an enum.
 ///
 /// Iterate over the variants of an Enum. Any additional data on your variants will be set to `Default::default()`.
-/// The macro implements `strum::IntoEnumIterator` on your enum and creates a new type called `YourEnumIter` that is the iterator object.
+/// The macro implements `strum::IntoEnumIter` on your enum and creates a new type called `YourEnumIter` that is the iterator object.
 /// You cannot derive `EnumIter` on any type with a lifetime bound (`<'a>`) because the iterator would surely
 /// create [unbounded lifetimes](https://doc.rust-lang.org/nightly/nomicon/unbounded-lifetimes.html).
 ///
@@ -1164,38 +1139,13 @@
     toks.into()
 }
 
-/// Generated `is_*()` methods for each variant.
-/// E.g. `Color.is_red()`.
-///
-/// ```
-///
-/// use strum_macros::EnumIs;
-///
-/// #[derive(EnumIs, Debug)]
-/// enum Color {
-///     Red,
-///     Green { range: usize },
-/// }
-///
-/// assert!(Color::Red.is_red());
-/// assert!(Color::Green{range: 0}.is_green());
-/// ```
-#[proc_macro_derive(EnumIs, attributes(strum))]
-pub fn enum_is(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
-    let ast = syn::parse_macro_input!(input as DeriveInput);
-
-    let toks = macros::enum_is::enum_is_inner(&ast).unwrap_or_else(|err| err.to_compile_error());
-    debug_print_generated(&ast, &toks);
-    toks.into()
-}
-
 /// Add a function to enum that allows accessing variants by its discriminant
 ///
 /// This macro adds a standalone function to obtain an enum variant by its discriminant. The macro adds
 /// `from_repr(discriminant: usize) -> Option<YourEnum>` as a standalone function on the enum. For
 /// variants with additional data, the returned variant will use the `Default` trait to fill the
 /// data. The discriminant follows the same rules as `rustc`. The first discriminant is zero and each
-/// successive variant has a discriminant of one greater than the previous variant, except where an
+/// successive variant has a discriminant of one greater than the previous variant, expect where an
 /// explicit discriminant is specified. The type of the discriminant will match the `repr` type if
 /// it is specifed.
 ///
diff --git a/src/strum_macros/macros/enum_count.rs.html b/src/strum_macros/macros/enum_count.rs.html
index 0c9b9e7797b1..919cb72526f5 100644
--- a/src/strum_macros/macros/enum_count.rs.html
+++ b/src/strum_macros/macros/enum_count.rs.html
@@ -1,4 +1,4 @@
-enum_count.rs - source
1
+enum_count.rs - source
1
 2
 3
 4
@@ -25,29 +25,15 @@
 25
 26
 27
-28
-29
-30
-31
-32
-33
-34
 
use proc_macro2::TokenStream;
 use quote::quote;
 use syn::{Data, DeriveInput};
 
-use crate::helpers::variant_props::HasStrumVariantProperties;
 use crate::helpers::{non_enum_error, HasTypeProperties};
 
 pub(crate) fn enum_count_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
     let n = match &ast.data {
-        Data::Enum(v) => v.variants.iter().try_fold(0usize, |acc, v| {
-            if v.get_variant_properties()?.disabled.is_none() {
-                Ok::<usize, syn::Error>(acc + 1usize)
-            } else {
-                Ok::<usize, syn::Error>(acc)
-            }
-        })?,
+        Data::Enum(v) => v.variants.len(),
         _ => return Err(non_enum_error()),
     };
     let type_properties = ast.get_type_properties()?;
diff --git a/src/strum_macros/macros/enum_discriminants.rs.html b/src/strum_macros/macros/enum_discriminants.rs.html
index ec2deb2b4b8d..bcca16e2e09c 100644
--- a/src/strum_macros/macros/enum_discriminants.rs.html
+++ b/src/strum_macros/macros/enum_discriminants.rs.html
@@ -1,4 +1,4 @@
-enum_discriminants.rs - source
1
+enum_discriminants.rs - source
1
 2
 3
 4
@@ -160,8 +160,6 @@
 160
 161
 162
-163
-164
 
use proc_macro2::{Span, TokenStream, TokenTree};
 use quote::{quote, ToTokens};
 use syn::parse_quote;
@@ -217,16 +215,14 @@
             .filter(|attr| {
                 ATTRIBUTES_TO_COPY
                     .iter()
-                    .any(|attr_whitelisted| attr.path().is_ident(attr_whitelisted))
+                    .any(|attr_whitelisted| attr.path.is_ident(attr_whitelisted))
             })
             .map(|attr| {
-                if attr.path().is_ident("strum_discriminants") {
-                    let mut ts = attr.meta.require_list()?.to_token_stream().into_iter();
-
-                    // Discard strum_discriminants(...)
-                    let _ = ts.next();
-
-                    let passthrough_group = ts
+                if attr.path.is_ident("strum_discriminants") {
+                    let passthrough_group = attr
+                        .tokens
+                        .clone()
+                        .into_iter()
                         .next()
                         .ok_or_else(|| strum_discriminants_passthrough_error(attr))?;
                     let passthrough_attribute = match passthrough_group {
diff --git a/src/strum_macros/macros/enum_is.rs.html b/src/strum_macros/macros/enum_is.rs.html
deleted file mode 100644
index 06647a51b67a..000000000000
--- a/src/strum_macros/macros/enum_is.rs.html
+++ /dev/null
@@ -1,123 +0,0 @@
-enum_is.rs - source
1
-2
-3
-4
-5
-6
-7
-8
-9
-10
-11
-12
-13
-14
-15
-16
-17
-18
-19
-20
-21
-22
-23
-24
-25
-26
-27
-28
-29
-30
-31
-32
-33
-34
-35
-36
-37
-38
-39
-40
-41
-42
-43
-44
-45
-46
-47
-48
-49
-50
-51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-
use crate::helpers::{non_enum_error, HasStrumVariantProperties};
-use heck::ToSnakeCase;
-use proc_macro2::TokenStream;
-use quote::{format_ident, quote};
-use syn::{Data, DeriveInput};
-
-pub fn enum_is_inner(ast: &DeriveInput) -> syn::Result<TokenStream> {
-    let variants = match &ast.data {
-        Data::Enum(v) => &v.variants,
-        _ => return Err(non_enum_error()),
-    };
-
-    let enum_name = &ast.ident;
-
-    let variants: Vec<_> = variants
-        .iter()
-        .filter_map(|variant| {
-            if variant.get_variant_properties().ok()?.disabled.is_some() {
-                return None;
-            }
-
-            let variant_name = &variant.ident;
-            let fn_name = format_ident!("is_{}", snakify(&variant_name.to_string()));
-
-            Some(quote! {
-                #[must_use]
-                #[inline]
-                pub const fn #fn_name(&self) -> bool {
-                    match self {
-                        &#enum_name::#variant_name { .. } => true,
-                        _ => false
-                    }
-                }
-            })
-        })
-        .collect();
-
-    Ok(quote! {
-        impl #enum_name {
-            #(#variants)*
-        }
-    }
-    .into())
-}
-
-/// heck doesn't treat numbers as new words, but this function does.
-/// E.g. for input `Hello2You`, heck would output `hello2_you`, and snakify would output `hello_2_you`.
-fn snakify(s: &str) -> String {
-    let mut output: Vec<char> = s.to_string().to_snake_case().chars().collect();
-    let mut num_starts = vec![];
-    for (pos, c) in output.iter().enumerate() {
-        if c.is_digit(10) && pos != 0 && !output[pos - 1].is_digit(10) {
-            num_starts.push(pos);
-        }
-    }
-    // need to do in reverse, because after inserting, all chars after the point of insertion are off
-    for i in num_starts.into_iter().rev() {
-        output.insert(i, '_')
-    }
-    output.into_iter().collect()
-}
-
\ No newline at end of file diff --git a/src/strum_macros/macros/enum_iter.rs.html b/src/strum_macros/macros/enum_iter.rs.html index 6c5d996396dc..22b7065ba0d2 100644 --- a/src/strum_macros/macros/enum_iter.rs.html +++ b/src/strum_macros/macros/enum_iter.rs.html @@ -1,4 +1,4 @@ -enum_iter.rs - source
1
+enum_iter.rs - source
1
 2
 3
 4
@@ -156,20 +156,6 @@
 156
 157
 158
-159
-160
-161
-162
-163
-164
-165
-166
-167
-168
-169
-170
-171
-172
 
use proc_macro2::{Span, TokenStream};
 use quote::quote;
 use syn::{Data, DeriveInput, Fields, Ident};
@@ -183,7 +169,6 @@
     let vis = &ast.vis;
     let type_properties = ast.get_type_properties()?;
     let strum_module_path = type_properties.crate_module_path();
-    let doc_comment = format!("An iterator over the variants of [{}]", name);
 
     if gen.lifetimes().count() > 0 {
         return Err(syn::Error::new(
@@ -237,14 +222,11 @@
     arms.push(quote! { _ => ::core::option::Option::None });
     let iter_name = syn::parse_str::<Ident>(&format!("{}Iter", name)).unwrap();
 
-    // Create a string literal "MyEnumIter" to use in the debug impl.
-    let iter_name_debug_struct =
-        syn::parse_str::<syn::LitStr>(&format!("\"{}\"", iter_name)).unwrap();
-
     Ok(quote! {
-        #[doc = #doc_comment]
+        #[doc = "An iterator over the variants of [Self]"]
         #[allow(
             missing_copy_implementations,
+            missing_debug_implementations,
         )]
         #vis struct #iter_name #ty_generics {
             idx: usize,
@@ -252,16 +234,6 @@
             marker: ::core::marker::PhantomData #phantom_data,
         }
 
-        impl #impl_generics core::fmt::Debug for #iter_name #ty_generics #where_clause {
-            fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
-                // We don't know if the variants implement debug themselves so the only thing we
-                // can really show is how many elements are left.
-                f.debug_struct(#iter_name_debug_struct)
-                    .field("len", &self.len())
-                    .finish()
-            }
-        }
-
         impl #impl_generics #iter_name #ty_generics #where_clause {
             fn get(&self, idx: usize) -> Option<#name #ty_generics> {
                 match idx {
diff --git a/src/strum_macros/macros/enum_messages.rs.html b/src/strum_macros/macros/enum_messages.rs.html
index 3a766ea6d827..5d500793ae82 100644
--- a/src/strum_macros/macros/enum_messages.rs.html
+++ b/src/strum_macros/macros/enum_messages.rs.html
@@ -1,4 +1,4 @@
-enum_messages.rs - source
1
+enum_messages.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/macros/enum_properties.rs.html b/src/strum_macros/macros/enum_properties.rs.html
index 0a1005e82c64..05e79b3eaf82 100644
--- a/src/strum_macros/macros/enum_properties.rs.html
+++ b/src/strum_macros/macros/enum_properties.rs.html
@@ -1,4 +1,4 @@
-enum_properties.rs - source
1
+enum_properties.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/macros/enum_variant_names.rs.html b/src/strum_macros/macros/enum_variant_names.rs.html
index bf1ed3414a97..6cd32a64ab21 100644
--- a/src/strum_macros/macros/enum_variant_names.rs.html
+++ b/src/strum_macros/macros/enum_variant_names.rs.html
@@ -1,4 +1,4 @@
-enum_variant_names.rs - source
1
+enum_variant_names.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/macros/from_repr.rs.html b/src/strum_macros/macros/from_repr.rs.html
index eec610170c7d..0e4df9648e06 100644
--- a/src/strum_macros/macros/from_repr.rs.html
+++ b/src/strum_macros/macros/from_repr.rs.html
@@ -1,4 +1,4 @@
-from_repr.rs - source
1
+from_repr.rs - source
1
 2
 3
 4
@@ -137,22 +137,9 @@
 137
 138
 139
-140
-141
-142
-143
-144
-145
-146
-147
-148
-149
-150
-151
-152
 
use heck::ToShoutySnakeCase;
 use proc_macro2::{Span, TokenStream};
-use quote::{format_ident, quote, ToTokens};
+use quote::{format_ident, quote};
 use syn::{Data, DeriveInput, Fields, PathArguments, Type, TypeParen};
 
 use crate::helpers::{non_enum_error, HasStrumVariantProperties};
@@ -166,21 +153,8 @@
 
     let mut discriminant_type: Type = syn::parse("usize".parse().unwrap()).unwrap();
     for attr in attrs {
-        let path = attr.path();
-
-        let mut ts = if let Ok(ts) = attr
-            .meta
-            .require_list()
-            .map(|metas| metas.to_token_stream().into_iter())
-        {
-            ts
-        } else {
-            continue;
-        };
-        // Discard the path
-        let _ = ts.next();
-        let tokens: TokenStream = ts.collect();
-
+        let path = &attr.path;
+        let tokens = &attr.tokens;
         if path.leading_colon.is_some() {
             continue;
         }
diff --git a/src/strum_macros/macros/mod.rs.html b/src/strum_macros/macros/mod.rs.html
index b83f2fbf7e7f..596a5baa469d 100644
--- a/src/strum_macros/macros/mod.rs.html
+++ b/src/strum_macros/macros/mod.rs.html
@@ -1,4 +1,4 @@
-mod.rs - source
1
+mod.rs - source
1
 2
 3
 4
@@ -12,10 +12,8 @@
 12
 13
 14
-15
 
pub mod enum_count;
 pub mod enum_discriminants;
-pub mod enum_is;
 pub mod enum_iter;
 pub mod enum_messages;
 pub mod enum_properties;
diff --git a/src/strum_macros/macros/strings/as_ref_str.rs.html b/src/strum_macros/macros/strings/as_ref_str.rs.html
index 84688f98fb98..4fe482a28ce3 100644
--- a/src/strum_macros/macros/strings/as_ref_str.rs.html
+++ b/src/strum_macros/macros/strings/as_ref_str.rs.html
@@ -1,4 +1,4 @@
-as_ref_str.rs - source
1
+as_ref_str.rs - source
1
 2
 3
 4
@@ -197,7 +197,7 @@
     let mut generics = ast.generics.clone();
     generics
         .params
-        .push(syn::GenericParam::Lifetime(syn::LifetimeParam::new(
+        .push(syn::GenericParam::Lifetime(syn::LifetimeDef::new(
             parse_quote!('_derivative_strum),
         )));
     let (impl_generics2, _, _) = generics.split_for_impl();
diff --git a/src/strum_macros/macros/strings/display.rs.html b/src/strum_macros/macros/strings/display.rs.html
index 16340339c3df..61852cd65580 100644
--- a/src/strum_macros/macros/strings/display.rs.html
+++ b/src/strum_macros/macros/strings/display.rs.html
@@ -1,4 +1,4 @@
-display.rs - source
1
+display.rs - source
1
 2
 3
 4
@@ -49,20 +49,6 @@
 49
 50
 51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
 
use proc_macro2::TokenStream;
 use quote::quote;
 use syn::{Data, DeriveInput, Fields};
@@ -97,21 +83,7 @@
             Fields::Named(..) => quote! { {..} },
         };
 
-        if variant_properties.to_string.is_none() && variant_properties.default.is_some() {
-            match &variant.fields {
-                Fields::Unnamed(fields) if fields.unnamed.len() == 1 => {
-                    arms.push(quote! { #name::#ident(ref s) => f.pad(s) });
-                }
-                _ => {
-                    return Err(syn::Error::new_spanned(
-                        variant,
-                        "Default only works on newtype structs with a single String field",
-                    ))
-                }
-            }
-        } else {
-            arms.push(quote! { #name::#ident #params => f.pad(#output) });
-        }
+        arms.push(quote! { #name::#ident #params => f.pad(#output) });
     }
 
     if arms.len() < variants.len() {
diff --git a/src/strum_macros/macros/strings/from_string.rs.html b/src/strum_macros/macros/strings/from_string.rs.html
index cd9fbbe88df5..9159de34c680 100644
--- a/src/strum_macros/macros/strings/from_string.rs.html
+++ b/src/strum_macros/macros/strings/from_string.rs.html
@@ -1,4 +1,4 @@
-from_string.rs - source
1
+from_string.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/macros/strings/mod.rs.html b/src/strum_macros/macros/strings/mod.rs.html
index 3a8c19b700ff..7662fc9ebd5c 100644
--- a/src/strum_macros/macros/strings/mod.rs.html
+++ b/src/strum_macros/macros/strings/mod.rs.html
@@ -1,4 +1,4 @@
-mod.rs - source
1
+mod.rs - source
1
 2
 3
 4
diff --git a/src/strum_macros/macros/strings/to_string.rs.html b/src/strum_macros/macros/strings/to_string.rs.html
index da9d4cff44e6..e498b78044ab 100644
--- a/src/strum_macros/macros/strings/to_string.rs.html
+++ b/src/strum_macros/macros/strings/to_string.rs.html
@@ -1,4 +1,4 @@
-to_string.rs - source
1
+to_string.rs - source
1
 2
 3
 4
@@ -49,22 +49,6 @@
 49
 50
 51
-52
-53
-54
-55
-56
-57
-58
-59
-60
-61
-62
-63
-64
-65
-66
-67
 
use proc_macro2::TokenStream;
 use quote::quote;
 use syn::{Data, DeriveInput, Fields};
@@ -89,22 +73,6 @@
             continue;
         }
 
-        // display variants like Green("lime") as "lime"
-        if variant_properties.to_string.is_none() && variant_properties.default.is_some() {
-            match &variant.fields {
-                Fields::Unnamed(fields) if fields.unnamed.len() == 1 => {
-                    arms.push(quote! { #name::#ident(ref s) => ::std::string::String::from(s) });
-                    continue;
-                }
-                _ => {
-                    return Err(syn::Error::new_spanned(
-                        variant,
-                        "Default only works on newtype structs with a single String field",
-                    ))
-                }
-            }
-        }
-
         // Look at all the serialize attributes.
         let output = variant_properties.get_preferred_name(type_properties.case_style);
 
diff --git a/strum_macros/all.html b/strum_macros/all.html
index 1807d0109a49..54c0c0feef7c 100644
--- a/strum_macros/all.html
+++ b/strum_macros/all.html
@@ -1 +1 @@
-List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/strum_macros/derive.EnumCount.html b/strum_macros/derive.EnumCount.html index 067bca9c5e33..735c2dc7ac04 100644 --- a/strum_macros/derive.EnumCount.html +++ b/strum_macros/derive.EnumCount.html @@ -1,4 +1,4 @@ -EnumCount in strum_macros - Rust

Derive Macro strum_macros::EnumCount

source ·
#[derive(EnumCount)]
+EnumCount in strum_macros - Rust

Derive Macro strum_macros::EnumCount

source ·
#[derive(EnumCount)]
 {
     // Attributes available to this derive:
     #[strum]
diff --git a/strum_macros/derive.EnumDiscriminants.html b/strum_macros/derive.EnumDiscriminants.html
index 3e15296d6e18..ae01ad32bf7c 100644
--- a/strum_macros/derive.EnumDiscriminants.html
+++ b/strum_macros/derive.EnumDiscriminants.html
@@ -1,4 +1,4 @@
-EnumDiscriminants in strum_macros - Rust

Derive Macro strum_macros::EnumDiscriminants

source ·
#[derive(EnumDiscriminants)]
+EnumDiscriminants in strum_macros - Rust

Derive Macro strum_macros::EnumDiscriminants

source ·
#[derive(EnumDiscriminants)]
 {
     // Attributes available to this derive:
     #[strum]
diff --git a/strum_macros/derive.EnumIs.html b/strum_macros/derive.EnumIs.html
deleted file mode 100644
index da984a88d84b..000000000000
--- a/strum_macros/derive.EnumIs.html
+++ /dev/null
@@ -1,20 +0,0 @@
-EnumIs in strum_macros - Rust

Derive Macro strum_macros::EnumIs

source ·
#[derive(EnumIs)]
-{
-    // Attributes available to this derive:
-    #[strum]
-}
-
Expand description

Generated is_*() methods for each variant. -E.g. Color.is_red().

- -

-use strum_macros::EnumIs;
-
-#[derive(EnumIs, Debug)]
-enum Color {
-    Red,
-    Green { range: usize },
-}
-
-assert!(Color::Red.is_red());
-assert!(Color::Green{range: 0}.is_green());
-
\ No newline at end of file diff --git a/strum_macros/derive.EnumIter.html b/strum_macros/derive.EnumIter.html index 1cc36dcf4a66..bd37cf492d18 100644 --- a/strum_macros/derive.EnumIter.html +++ b/strum_macros/derive.EnumIter.html @@ -5,7 +5,7 @@ }
Expand description

Creates a new type that iterates of the variants of an enum.

Iterate over the variants of an Enum. Any additional data on your variants will be set to Default::default(). -The macro implements strum::IntoEnumIterator on your enum and creates a new type called YourEnumIter that is the iterator object. +The macro implements strum::IntoEnumIter on your enum and creates a new type called YourEnumIter that is the iterator object. You cannot derive EnumIter on any type with a lifetime bound (<'a>) because the iterator would surely create unbounded lifetimes.

diff --git a/strum_macros/derive.EnumMessage.html b/strum_macros/derive.EnumMessage.html index 2548e00b3d2f..d930fb7b19bd 100644 --- a/strum_macros/derive.EnumMessage.html +++ b/strum_macros/derive.EnumMessage.html @@ -1,4 +1,4 @@ -EnumMessage in strum_macros - Rust

Derive Macro strum_macros::EnumMessage

source ·
#[derive(EnumMessage)]
+EnumMessage in strum_macros - Rust

Derive Macro strum_macros::EnumMessage

source ·
#[derive(EnumMessage)]
 {
     // Attributes available to this derive:
     #[strum]
diff --git a/strum_macros/derive.EnumProperty.html b/strum_macros/derive.EnumProperty.html
index 813b050df7d1..5b902ac6d749 100644
--- a/strum_macros/derive.EnumProperty.html
+++ b/strum_macros/derive.EnumProperty.html
@@ -1,4 +1,4 @@
-EnumProperty in strum_macros - Rust

Derive Macro strum_macros::EnumProperty

source ·
#[derive(EnumProperty)]
+EnumProperty in strum_macros - Rust

Derive Macro strum_macros::EnumProperty

source ·
#[derive(EnumProperty)]
 {
     // Attributes available to this derive:
     #[strum]
diff --git a/strum_macros/derive.EnumVariantNames.html b/strum_macros/derive.EnumVariantNames.html
index 1090035e0245..7c40929a0057 100644
--- a/strum_macros/derive.EnumVariantNames.html
+++ b/strum_macros/derive.EnumVariantNames.html
@@ -13,7 +13,7 @@
 use strum::VariantNames;
 
 #[derive(Debug, EnumString, EnumVariantNames)]
-#[strum(serialize_all = "kebab-case")]
+#[strum(serialize_all = "kebab_case")]
 enum Color {
     Red,
     Blue,
diff --git a/strum_macros/derive.FromRepr.html b/strum_macros/derive.FromRepr.html
index 8b9967b3d735..4fda68844733 100644
--- a/strum_macros/derive.FromRepr.html
+++ b/strum_macros/derive.FromRepr.html
@@ -1,4 +1,4 @@
-FromRepr in strum_macros - Rust

Derive Macro strum_macros::FromRepr

source ·
#[derive(FromRepr)]
+FromRepr in strum_macros - Rust

Derive Macro strum_macros::FromRepr

source ·
#[derive(FromRepr)]
 {
     // Attributes available to this derive:
     #[strum]
@@ -8,7 +8,7 @@
 from_repr(discriminant: usize) -> Option<YourEnum> as a standalone function on the enum. For
 variants with additional data, the returned variant will use the Default trait to fill the
 data. The discriminant follows the same rules as rustc. The first discriminant is zero and each
-successive variant has a discriminant of one greater than the previous variant, except where an
+successive variant has a discriminant of one greater than the previous variant, expect where an
 explicit discriminant is specified. The type of the discriminant will match the repr type if
 it is specifed.

When the macro is applied using rustc >= 1.46 and when there is no additional data on any of diff --git a/strum_macros/derive.ToString.html b/strum_macros/derive.ToString.html index 58fb5f0b6e12..6502eb9c3327 100644 --- a/strum_macros/derive.ToString.html +++ b/strum_macros/derive.ToString.html @@ -1,9 +1,9 @@ -ToString in strum_macros - Rust

Derive Macro strum_macros::ToString

source ·
#[derive(ToString)]
+ToString in strum_macros - Rust

Derive Macro strum_macros::ToString

source ·
#[derive(ToString)]
 {
     // Attributes available to this derive:
     #[strum]
 }
-
👎Deprecated since 0.22.0: please use #[derive(Display)] instead. See issue https://github.com/Peternator7/strum/issues/132
Expand description

implements std::string::ToString on an enum

+
👎Deprecated since 0.22.0: please use #[derive(Display)] instead. See issue https://github.com/Peternator7/strum/issues/132
Expand description

implements std::string::ToString on en enum

// You need to bring the ToString trait into scope to use it
 use std::string::ToString;
diff --git a/strum_macros/index.html b/strum_macros/index.html
index c2c8a5222e4b..132ef3969b33 100644
--- a/strum_macros/index.html
+++ b/strum_macros/index.html
@@ -1,5 +1,4 @@
-strum_macros - Rust

Crate strum_macros

source ·
Expand description

Strum

+strum_macros - Rust

Crate strum_macros

source ·
Expand description

Strum

Strum is a set of macros and traits for working with enums and strings easier in Rust.

-

Derive Macros

  • Converts enum variants to &'static str.
  • AsStaticStrDeprecated
  • Converts enum variants to strings.
  • Add a constant usize equal to the number of variants.
  • Generate a new type with only the discriminant names.
  • Generated is_*() methods for each variant. -E.g. Color.is_red().
  • Creates a new type that iterates of the variants of an enum.
  • Add a verbose message to an enum variant.
  • Add custom properties to enum variants.
  • Converts strings to enum variants based on their name.
  • Implements Strum::VariantNames which adds an associated constant VARIANTS which is an array of discriminant names.
  • Add a function to enum that allows accessing variants by its discriminant
  • Implements From<MyEnum> for &'static str on an enum.
  • ToStringDeprecated
    implements std::string::ToString on an enum
\ No newline at end of file +

Derive Macros

  • Converts enum variants to &'static str.
  • AsStaticStrDeprecated
  • Converts enum variants to strings.
  • Add a constant usize equal to the number of variants.
  • Generate a new type with only the discriminant names.
  • Creates a new type that iterates of the variants of an enum.
  • Add a verbose message to an enum variant.
  • Add custom properties to enum variants.
  • Converts strings to enum variants based on their name.
  • Implements Strum::VariantNames which adds an associated constant VARIANTS which is an array of discriminant names.
  • Add a function to enum that allows accessing variants by its discriminant
  • Implements From<MyEnum> for &'static str on an enum.
  • ToStringDeprecated
    implements std::string::ToString on en enum
\ No newline at end of file diff --git a/strum_macros/sidebar-items.js b/strum_macros/sidebar-items.js index 7b777c28c55e..20a1de87f552 100644 --- a/strum_macros/sidebar-items.js +++ b/strum_macros/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"derive":["AsRefStr","AsStaticStr","Display","EnumCount","EnumDiscriminants","EnumIs","EnumIter","EnumMessage","EnumProperty","EnumString","EnumVariantNames","FromRepr","IntoStaticStr","ToString"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"derive":["AsRefStr","AsStaticStr","Display","EnumCount","EnumDiscriminants","EnumIter","EnumMessage","EnumProperty","EnumString","EnumVariantNames","FromRepr","IntoStaticStr","ToString"]}; \ No newline at end of file