diff --git a/aho_corasick/all.html b/aho_corasick/all.html index f6cfcb6c5..14c8f7210 100644 --- a/aho_corasick/all.html +++ b/aho_corasick/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate

List of all items

Structs

Enums

Traits

\ No newline at end of file diff --git a/aho_corasick/automaton/enum.Candidate.html b/aho_corasick/automaton/enum.Candidate.html index 5d20a941d..a83e0f59e 100644 --- a/aho_corasick/automaton/enum.Candidate.html +++ b/aho_corasick/automaton/enum.Candidate.html @@ -1,4 +1,4 @@ -Candidate in aho_corasick::automaton - Rust +Candidate in aho_corasick::automaton - Rust
pub enum Candidate {
     None,
     Match(Match),
diff --git a/aho_corasick/automaton/index.html b/aho_corasick/automaton/index.html
index d1fcce199..0e962001d 100644
--- a/aho_corasick/automaton/index.html
+++ b/aho_corasick/automaton/index.html
@@ -1,4 +1,4 @@
-aho_corasick::automaton - Rust
+aho_corasick::automaton - Rust
     

Module aho_corasick::automaton

source ·
Expand description

Provides Automaton trait for abstracting over Aho-Corasick automata.

The Automaton trait provides a way to write generic code over any Aho-Corasick automaton. It also provides access to lower level APIs that diff --git a/aho_corasick/automaton/struct.FindIter.html b/aho_corasick/automaton/struct.FindIter.html index bda630348..fe7f465d0 100644 --- a/aho_corasick/automaton/struct.FindIter.html +++ b/aho_corasick/automaton/struct.FindIter.html @@ -1,4 +1,4 @@ -FindIter in aho_corasick::automaton - Rust

+FindIter in aho_corasick::automaton - Rust
pub struct FindIter<'a, 'h, A> { /* private fields */ }
Expand description

An iterator of non-overlapping matches in a particular haystack.

This iterator yields matches according to the MatchKind used by this automaton.

diff --git a/aho_corasick/automaton/struct.FindOverlappingIter.html b/aho_corasick/automaton/struct.FindOverlappingIter.html index b26cc36a5..bc3f77ae7 100644 --- a/aho_corasick/automaton/struct.FindOverlappingIter.html +++ b/aho_corasick/automaton/struct.FindOverlappingIter.html @@ -1,4 +1,4 @@ -FindOverlappingIter in aho_corasick::automaton - Rust +FindOverlappingIter in aho_corasick::automaton - Rust
pub struct FindOverlappingIter<'a, 'h, A> { /* private fields */ }
Expand description

An iterator of overlapping matches in a particular haystack.

This iterator will report all possible matches in a particular haystack, even when the matches overlap.

diff --git a/aho_corasick/automaton/struct.OverlappingState.html b/aho_corasick/automaton/struct.OverlappingState.html index 5ee58769b..cd9eaf34f 100644 --- a/aho_corasick/automaton/struct.OverlappingState.html +++ b/aho_corasick/automaton/struct.OverlappingState.html @@ -1,4 +1,4 @@ -OverlappingState in aho_corasick::automaton - Rust +OverlappingState in aho_corasick::automaton - Rust
pub struct OverlappingState { /* private fields */ }
Expand description

Represents the current state of an overlapping search.

This is used for overlapping searches since they need to know something about the previous search. For example, when multiple patterns match at the diff --git a/aho_corasick/automaton/struct.Prefilter.html b/aho_corasick/automaton/struct.Prefilter.html index e59c12bbd..7c8997ba1 100644 --- a/aho_corasick/automaton/struct.Prefilter.html +++ b/aho_corasick/automaton/struct.Prefilter.html @@ -1,4 +1,4 @@ -Prefilter in aho_corasick::automaton - Rust

+Prefilter in aho_corasick::automaton - Rust
pub struct Prefilter { /* private fields */ }
Expand description

A prefilter for accelerating a search.

This crate uses prefilters in the core search implementations to accelerate common cases. They typically only apply to cases where there are a small diff --git a/aho_corasick/automaton/struct.StateID.html b/aho_corasick/automaton/struct.StateID.html index 19b1b3094..83459a38a 100644 --- a/aho_corasick/automaton/struct.StateID.html +++ b/aho_corasick/automaton/struct.StateID.html @@ -1,4 +1,4 @@ -StateID in aho_corasick::automaton - Rust

+StateID in aho_corasick::automaton - Rust
pub struct StateID(/* private fields */);
Expand description

The identifier of a finite automaton state.

It is represented by a u32 even on 64-bit systems in order to conserve space. Namely, on all targets, this type guarantees that its value will @@ -61,14 +61,14 @@ whether the decoded integer is representable as a small index.

format.

Trait Implementations§

source§

impl Clone for StateID

source§

fn clone(&self) -> StateID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StateID

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StateID

source§

fn default() -> StateID

Returns the “default value” for a type. Read more
source§

impl From<u8> for StateID

source§

fn from(value: u8) -> StateID

Converts to this type from the input type.
source§

impl Hash for StateID

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T> Index<StateID> for [T]

§

type Output = T

The returned type after indexing.
source§

fn index(&self, index: StateID) -> &T

Performs the indexing (container[index]) operation. Read more
source§

impl<T> Index<StateID> for Vec<T>

§

type Output = T

The returned type after indexing.
source§

fn index(&self, index: StateID) -> &T

Performs the indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<StateID> for [T]

source§

fn index_mut(&mut self, index: StateID) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<StateID> for Vec<T>

source§

fn index_mut(&mut self, index: StateID) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Ord for StateID

source§

fn cmp(&self, other: &StateID) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<T> Index<StateID> for [T]

§

type Output = T

The returned type after indexing.
source§

fn index(&self, index: StateID) -> &T

Performs the indexing (container[index]) operation. Read more
source§

impl<T> Index<StateID> for Vec<T>

§

type Output = T

The returned type after indexing.
source§

fn index(&self, index: StateID) -> &T

Performs the indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<StateID> for [T]

source§

fn index_mut(&mut self, index: StateID) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<T> IndexMut<StateID> for Vec<T>

source§

fn index_mut(&mut self, index: StateID) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
source§

impl Ord for StateID

source§

fn cmp(&self, other: &StateID) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for StateID

source§

fn eq(&self, other: &StateID) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for StateID

source§

fn partial_cmp(&self, other: &StateID) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl TryFrom<u16> for StateID

§

type Error = StateIDError

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

fn try_from(value: u16) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<u32> for StateID

§

type Error = StateIDError

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

fn try_from(value: u32) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<u64> for StateID

§

type Error = StateIDError

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

fn try_from(value: u64) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<usize> for StateID

§

type Error = StateIDError

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

fn try_from(value: usize) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl Copy for StateID

source§

impl Eq for StateID

source§

impl StructuralPartialEq for StateID

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +operator. Read more

source§

impl TryFrom<u16> for StateID

§

type Error = StateIDError

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

fn try_from(value: u16) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<u32> for StateID

§

type Error = StateIDError

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

fn try_from(value: u32) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<u64> for StateID

§

type Error = StateIDError

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

fn try_from(value: u64) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl TryFrom<usize> for StateID

§

type Error = StateIDError

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

fn try_from(value: usize) -> Result<StateID, StateIDError>

Performs the conversion.
source§

impl Copy for StateID

source§

impl Eq for StateID

source§

impl StructuralPartialEq for StateID

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/aho_corasick/automaton/struct.StateIDError.html b/aho_corasick/automaton/struct.StateIDError.html index ca0dbd3e0..e984db105 100644 --- a/aho_corasick/automaton/struct.StateIDError.html +++ b/aho_corasick/automaton/struct.StateIDError.html @@ -1,11 +1,11 @@ -StateIDError in aho_corasick::automaton - Rust +StateIDError in aho_corasick::automaton - Rust
pub struct StateIDError(/* private fields */);
Expand description

This error occurs when an ID could not be constructed.

This occurs when given an integer exceeding the maximum allowed value.

When the std feature is enabled, this implements the Error trait.

Implementations§

source§

impl StateIDError

source

pub fn attempted(&self) -> u64

Returns the value that could not be converted to an ID.

-

Trait Implementations§

source§

impl Clone for StateIDError

source§

fn clone(&self) -> StateIDError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StateIDError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StateIDError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StateIDError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for StateIDError

source§

fn eq(&self, other: &StateIDError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for StateIDError

source§

fn clone(&self) -> StateIDError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StateIDError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for StateIDError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for StateIDError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl PartialEq for StateIDError

source§

fn eq(&self, other: &StateIDError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for StateIDError

source§

impl StructuralPartialEq for StateIDError

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where diff --git a/aho_corasick/automaton/struct.StreamFindIter.html b/aho_corasick/automaton/struct.StreamFindIter.html index 905e21919..3c4be8ac4 100644 --- a/aho_corasick/automaton/struct.StreamFindIter.html +++ b/aho_corasick/automaton/struct.StreamFindIter.html @@ -1,4 +1,4 @@ -StreamFindIter in aho_corasick::automaton - Rust +StreamFindIter in aho_corasick::automaton - Rust
pub struct StreamFindIter<'a, A, R> { /* private fields */ }
Expand description

An iterator that reports matches in a stream.

This iterator yields elements of type io::Result<Match>, where an error is reported if there was a problem reading from the underlying stream. diff --git a/aho_corasick/automaton/trait.Automaton.html b/aho_corasick/automaton/trait.Automaton.html index e1b8f2748..cfb8e299a 100644 --- a/aho_corasick/automaton/trait.Automaton.html +++ b/aho_corasick/automaton/trait.Automaton.html @@ -1,4 +1,4 @@ -Automaton in aho_corasick::automaton - Rust

+Automaton in aho_corasick::automaton - Rust
pub unsafe trait Automaton: Sealed {
 
Show 26 methods // Required methods fn start_state(&self, anchored: Anchored) -> Result<StateID, MatchError>; diff --git a/aho_corasick/dfa/index.html b/aho_corasick/dfa/index.html index 37b9643b5..0433ce06d 100644 --- a/aho_corasick/dfa/index.html +++ b/aho_corasick/dfa/index.html @@ -1,4 +1,4 @@ -aho_corasick::dfa - Rust +aho_corasick::dfa - Rust

Module aho_corasick::dfa

source ·
Expand description

Provides direct access to a DFA implementation of Aho-Corasick.

This is a low-level API that generally only needs to be used in niche circumstances. When possible, prefer using AhoCorasick diff --git a/aho_corasick/dfa/struct.Builder.html b/aho_corasick/dfa/struct.Builder.html index c95a322dd..df7dbeb8d 100644 --- a/aho_corasick/dfa/struct.Builder.html +++ b/aho_corasick/dfa/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in aho_corasick::dfa - Rust

+Builder in aho_corasick::dfa - Rust

Struct aho_corasick::dfa::Builder

source ·
pub struct Builder { /* private fields */ }
Expand description

A builder for configuring an Aho-Corasick DFA.

This builder has a subset of the options available to a AhoCorasickBuilder. Of the shared options, diff --git a/aho_corasick/dfa/struct.DFA.html b/aho_corasick/dfa/struct.DFA.html index 119ba9b15..45354c0ce 100644 --- a/aho_corasick/dfa/struct.DFA.html +++ b/aho_corasick/dfa/struct.DFA.html @@ -1,4 +1,4 @@ -DFA in aho_corasick::dfa - Rust

+DFA in aho_corasick::dfa - Rust

Struct aho_corasick::dfa::DFA

source ·
pub struct DFA { /* private fields */ }
Expand description

A DFA implementation of Aho-Corasick.

When possible, prefer using AhoCorasick instead of this type directly. Using a DFA directly is typically only necessary when diff --git a/aho_corasick/enum.AhoCorasickKind.html b/aho_corasick/enum.AhoCorasickKind.html index a13121289..d694ad4a7 100644 --- a/aho_corasick/enum.AhoCorasickKind.html +++ b/aho_corasick/enum.AhoCorasickKind.html @@ -1,4 +1,4 @@ -AhoCorasickKind in aho_corasick - Rust

+AhoCorasickKind in aho_corasick - Rust
#[non_exhaustive]
pub enum AhoCorasickKind { NoncontiguousNFA, ContiguousNFA, diff --git a/aho_corasick/enum.Anchored.html b/aho_corasick/enum.Anchored.html index ebe74ec7c..f1d19b176 100644 --- a/aho_corasick/enum.Anchored.html +++ b/aho_corasick/enum.Anchored.html @@ -1,4 +1,4 @@ -Anchored in aho_corasick - Rust +Anchored in aho_corasick - Rust
#[non_exhaustive]
pub enum Anchored { No, Yes, diff --git a/aho_corasick/enum.MatchErrorKind.html b/aho_corasick/enum.MatchErrorKind.html index ec9edd868..55810ad7f 100644 --- a/aho_corasick/enum.MatchErrorKind.html +++ b/aho_corasick/enum.MatchErrorKind.html @@ -1,4 +1,4 @@ -MatchErrorKind in aho_corasick - Rust +MatchErrorKind in aho_corasick - Rust
#[non_exhaustive]
pub enum MatchErrorKind { InvalidInputAnchored, InvalidInputUnanchored, diff --git a/aho_corasick/enum.MatchKind.html b/aho_corasick/enum.MatchKind.html index e82550d53..bd076fa8d 100644 --- a/aho_corasick/enum.MatchKind.html +++ b/aho_corasick/enum.MatchKind.html @@ -1,4 +1,4 @@ -MatchKind in aho_corasick - Rust +MatchKind in aho_corasick - Rust
#[non_exhaustive]
pub enum MatchKind { Standard, LeftmostFirst, diff --git a/aho_corasick/enum.StartKind.html b/aho_corasick/enum.StartKind.html index 1e91e99d7..69951d8ce 100644 --- a/aho_corasick/enum.StartKind.html +++ b/aho_corasick/enum.StartKind.html @@ -1,4 +1,4 @@ -StartKind in aho_corasick - Rust +StartKind in aho_corasick - Rust
pub enum StartKind {
     Both,
     Unanchored,
diff --git a/aho_corasick/index.html b/aho_corasick/index.html
index 6f1a41599..dd75ec823 100644
--- a/aho_corasick/index.html
+++ b/aho_corasick/index.html
@@ -1,4 +1,4 @@
-aho_corasick - Rust

Feeds a slice of this type into the given Hasher. Read more
source§

impl Index<Span> for [u8]

§

type Output = [u8]

The returned type after indexing.
source§

fn index(&self, index: Span) -> &[u8]

Performs the indexing (container[index]) operation. Read more
source§

impl Index<Span> for str

§

type Output = str

The returned type after indexing.
source§

fn index(&self, index: Span) -> &str

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<Span> for [u8]

source§

fn index_mut(&mut self, index: Span) -> &mut [u8]

Performs the mutable indexing (container[index]) operation. Read more
source§

impl PartialEq<Range<usize>> for Span

source§

fn eq(&self, range: &Range<usize>) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<Span> for Range<usize>

source§

fn eq(&self, span: &Span) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Span

source§

fn eq(&self, other: &Span) -> bool

This method tests for self and other values to be equal, and is used -by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always +sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for Span

source§

fn eq(&self, other: &Span) -> bool

This method tests for self and other values to be equal, and is used +by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Span

source§

impl Eq for Span

source§

impl StructuralPartialEq for Span

Auto Trait Implementations§

§

impl RefUnwindSafe for Span

§

impl Send for Span

§

impl Sync for Span

§

impl Unpin for Span

§

impl UnwindSafe for Span

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/aho_corasick/struct.StreamFindIter.html b/aho_corasick/struct.StreamFindIter.html index 49acc10fe..eada7fbe7 100644 --- a/aho_corasick/struct.StreamFindIter.html +++ b/aho_corasick/struct.StreamFindIter.html @@ -1,4 +1,4 @@ -StreamFindIter in aho_corasick - Rust +StreamFindIter in aho_corasick - Rust
pub struct StreamFindIter<'a, R>(/* private fields */);
Expand description

An iterator that reports Aho-Corasick matches in a stream.

This iterator yields elements of type Result<Match, std::io::Error>, where an error is reported if there was a problem reading from the diff --git a/anyhow/all.html b/anyhow/all.html index 60d8fa767..a45151296 100644 --- a/anyhow/all.html +++ b/anyhow/all.html @@ -1,2 +1,2 @@ -List of all items in this crate

+List of all items in this crate

List of all items

Structs

Traits

Macros

Functions

Type Aliases

\ No newline at end of file diff --git a/anyhow/fn.Ok.html b/anyhow/fn.Ok.html index 5bd686293..aa2a40c20 100644 --- a/anyhow/fn.Ok.html +++ b/anyhow/fn.Ok.html @@ -1,4 +1,4 @@ -Ok in anyhow - Rust +Ok in anyhow - Rust

Function anyhow::Ok

source ·
pub fn Ok<T>(t: T) -> Result<T>
Expand description

Equivalent to Ok::<_, anyhow::Error>(value).

This simplifies creation of an anyhow::Result in places where type inference cannot deduce the E type of the result — without needing to write diff --git a/anyhow/index.html b/anyhow/index.html index 84e4aa3bf..a7819bb70 100644 --- a/anyhow/index.html +++ b/anyhow/index.html @@ -1,4 +1,4 @@ -anyhow - Rust

Trait Implementations§

source§

impl AsRef<dyn Error> for Error

source§

fn as_ref(&self) -> &(dyn StdError + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<dyn Error + Send + Sync> for Error

source§

fn as_ref(&self) -> &(dyn StdError + Send + Sync + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for Error

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Error

§

type Target = dyn Error + Send + Sync

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for Error

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Display for Error

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for Error

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<E> From<E> for Error
where - E: StdError + Send + Sync + 'static,

source§

fn from(error: E) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + Send + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + Send + Sync + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl AsRef<dyn Error> for Error

source§

fn as_ref(&self) -> &(dyn StdError + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<dyn Error + Send + Sync> for Error

source§

fn as_ref(&self) -> &(dyn StdError + Send + Sync + 'static)

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for Error

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for Error

§

type Target = dyn Error + Send + Sync

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for Error

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Display for Error

source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for Error

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<E> From<E> for Error
where + E: StdError + Send + Sync + 'static,

source§

fn from(error: E) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + Send + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Box<dyn StdError + Send + Sync + 'static>

source§

fn from(error: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<!> for T

source§

fn from(t: !) -> T

Converts to this type from the input type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/anyhow/trait.Context.html b/anyhow/trait.Context.html index 6734a5436..d6bc19fde 100644 --- a/anyhow/trait.Context.html +++ b/anyhow/trait.Context.html @@ -1,4 +1,4 @@ -Context in anyhow - Rust +Context in anyhow - Rust

Trait anyhow::Context

source ·
pub trait Context<T, E>: Sealed {
     // Required methods
     fn context<C>(self, context: C) -> Result<T, Error>
diff --git a/anyhow/type.Result.html b/anyhow/type.Result.html
index 0992e1502..4ef0dbfa5 100644
--- a/anyhow/type.Result.html
+++ b/anyhow/type.Result.html
@@ -1,4 +1,4 @@
-Result in anyhow - Rust
+Result in anyhow - Rust
     

Type Alias anyhow::Result

source ·
pub type Result<T, E = Error> = Result<T, E>;
Expand description

Result<T, Error>

This is a reasonable return type to use throughout your application but also for fn main; if you do, failures will be printed along with any diff --git a/bitflags/all.html b/bitflags/all.html index 71e62dd7b..e61ea0a98 100644 --- a/bitflags/all.html +++ b/bitflags/all.html @@ -1,2 +1,2 @@ -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/bitflags/index.html b/bitflags/index.html index c80d24667..76e70214f 100644 --- a/bitflags/index.html +++ b/bitflags/index.html @@ -1,10 +1,10 @@ -bitflags - Rust

Structs§

  • An error encountered while parsing flags from text.

Traits§

Functions§

\ No newline at end of file diff --git a/bitflags/parser/sidebar-items.js b/bitflags/parser/sidebar-items.js index e681a68e5..6ff20da62 100644 --- a/bitflags/parser/sidebar-items.js +++ b/bitflags/parser/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":["from_str","to_writer"],"struct":["ParseError"],"trait":["ParseHex","WriteHex"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["from_str","from_str_strict","from_str_truncate","to_writer","to_writer_strict","to_writer_truncate"],"struct":["ParseError"],"trait":["ParseHex","WriteHex"]}; \ No newline at end of file diff --git a/bitflags/parser/struct.ParseError.html b/bitflags/parser/struct.ParseError.html index af457c01e..88aad835f 100644 --- a/bitflags/parser/struct.ParseError.html +++ b/bitflags/parser/struct.ParseError.html @@ -1,9 +1,9 @@ -ParseError in bitflags::parser - Rust -

Struct bitflags::parser::ParseError

source ·
pub struct ParseError(/* private fields */);
Expand description

An error encountered while parsing flags from text.

-

Implementations§

source§

impl ParseError

source

pub fn invalid_hex_flag(flag: impl Display) -> Self

An invalid hex flag was encountered.

-
source

pub fn invalid_named_flag(flag: impl Display) -> Self

A named flag that doesn’t correspond to any on the flags type was encountered.

-
source

pub const fn empty_flag() -> Self

A hex or named flag wasn’t found between separators.

-

Trait Implementations§

source§

impl Debug for ParseError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ParseError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +ParseError in bitflags::parser - Rust +

Struct bitflags::parser::ParseError

source ·
pub struct ParseError(/* private fields */);
Expand description

An error encountered while parsing flags from text.

+

Implementations§

source§

impl ParseError

source

pub fn invalid_hex_flag(flag: impl Display) -> Self

An invalid hex flag was encountered.

+
source

pub fn invalid_named_flag(flag: impl Display) -> Self

A named flag that doesn’t correspond to any on the flags type was encountered.

+
source

pub const fn empty_flag() -> Self

A hex or named flag wasn’t found between separators.

+

Trait Implementations§

source§

impl Debug for ParseError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for ParseError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/bitflags/parser/trait.ParseHex.html b/bitflags/parser/trait.ParseHex.html index 78dc453cc..0f864efc3 100644 --- a/bitflags/parser/trait.ParseHex.html +++ b/bitflags/parser/trait.ParseHex.html @@ -1,9 +1,9 @@ -ParseHex in bitflags::parser - Rust -

Trait bitflags::parser::ParseHex

source ·
pub trait ParseHex {
+ParseHex in bitflags::parser - Rust
+    

Trait bitflags::parser::ParseHex

source ·
pub trait ParseHex {
     // Required method
     fn parse_hex(input: &str) -> Result<Self, ParseError>
        where Self: Sized;
 }
Expand description

Parse a value from a hex string.

-

Required Methods§

source

fn parse_hex(input: &str) -> Result<Self, ParseError>
where +

Required Methods§

source

fn parse_hex(input: &str) -> Result<Self, ParseError>
where Self: Sized,

Parse the value from hex.

-

Implementations on Foreign Types§

source§

impl ParseHex for i8

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i16

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i32

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i64

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i128

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for isize

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u8

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u16

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u32

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u64

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u128

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for usize

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

Implementors§

\ No newline at end of file +

Implementations on Foreign Types§

source§

impl ParseHex for i8

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i16

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i32

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i64

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for i128

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for isize

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u8

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u16

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u32

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u64

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for u128

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

source§

impl ParseHex for usize

source§

fn parse_hex(input: &str) -> Result<Self, ParseError>

Implementors§

\ No newline at end of file diff --git a/bitflags/parser/trait.WriteHex.html b/bitflags/parser/trait.WriteHex.html index a2181887d..c4c00cc39 100644 --- a/bitflags/parser/trait.WriteHex.html +++ b/bitflags/parser/trait.WriteHex.html @@ -1,8 +1,8 @@ -WriteHex in bitflags::parser - Rust -

Trait bitflags::parser::WriteHex

source ·
pub trait WriteHex {
+WriteHex in bitflags::parser - Rust
+    

Trait bitflags::parser::WriteHex

source ·
pub trait WriteHex {
     // Required method
     fn write_hex<W: Write>(&self, writer: W) -> Result;
 }
Expand description

Encode a value as a hex string.

Implementors of this trait should not write the 0x prefix.

-

Required Methods§

source

fn write_hex<W: Write>(&self, writer: W) -> Result

Write the value as hex.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WriteHex for i8

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i16

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i32

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i64

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i128

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for isize

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u8

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u16

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u32

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u64

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u128

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for usize

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Implementors§

\ No newline at end of file +

Required Methods§

source

fn write_hex<W: Write>(&self, writer: W) -> Result

Write the value as hex.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WriteHex for i8

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i16

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i32

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i64

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for i128

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for isize

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u8

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u16

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u32

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u64

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for u128

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

source§

impl WriteHex for usize

source§

fn write_hex<W: Write>(&self, writer: W) -> Result

Implementors§

\ No newline at end of file diff --git a/bitflags/struct.Flag.html b/bitflags/struct.Flag.html index 1d340cb20..9deb0c2d6 100644 --- a/bitflags/struct.Flag.html +++ b/bitflags/struct.Flag.html @@ -1,15 +1,15 @@ -Flag in bitflags - Rust -

Struct bitflags::Flag

source ·
pub struct Flag<B> { /* private fields */ }
Expand description

A defined flags value that may be named or unnamed.

-

Implementations§

source§

impl<B> Flag<B>

source

pub const fn new(name: &'static str, value: B) -> Self

Define a flag.

+Flag in bitflags - Rust +

Struct bitflags::Flag

source ·
pub struct Flag<B> { /* private fields */ }
Expand description

A defined flags value that may be named or unnamed.

+

Implementations§

source§

impl<B> Flag<B>

source

pub const fn new(name: &'static str, value: B) -> Self

Define a flag.

If name is non-empty then the flag is named, otherwise it’s unnamed.

-
source

pub const fn name(&self) -> &'static str

Get the name of this flag.

+
source

pub const fn name(&self) -> &'static str

Get the name of this flag.

If the flag is unnamed then the returned string will be empty.

-
source

pub const fn value(&self) -> &B

Get the flags value of this flag.

-
source

pub const fn is_named(&self) -> bool

Whether the flag is named.

+
source

pub const fn value(&self) -> &B

Get the flags value of this flag.

+
source

pub const fn is_named(&self) -> bool

Whether the flag is named.

If Flag::name returns a non-empty string then this method will return true.

-
source

pub const fn is_unnamed(&self) -> bool

Whether the flag is unnamed.

+
source

pub const fn is_unnamed(&self) -> bool

Whether the flag is unnamed.

If Flag::name returns a non-empty string then this method will return false.

-

Auto Trait Implementations§

§

impl<B> RefUnwindSafe for Flag<B>
where +

Trait Implementations§

source§

impl<B: Debug> Debug for Flag<B>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<B> RefUnwindSafe for Flag<B>
where B: RefUnwindSafe,

§

impl<B> Send for Flag<B>
where B: Send,

§

impl<B> Sync for Flag<B>
where B: Sync,

§

impl<B> Unpin for Flag<B>
where diff --git a/bitflags/trait.Bits.html b/bitflags/trait.Bits.html index 12b0b79a2..7aa90d890 100644 --- a/bitflags/trait.Bits.html +++ b/bitflags/trait.Bits.html @@ -1,8 +1,8 @@ -Bits in bitflags - Rust -

Trait bitflags::Bits

source ·
pub trait Bits: Clone + Copy + PartialEq + BitAnd<Output = Self> + BitOr<Output = Self> + BitXor<Output = Self> + Not<Output = Self> + Sized + 'static {
+Bits in bitflags - Rust
+    

Trait bitflags::Bits

source ·
pub trait Bits: Clone + Copy + PartialEq + BitAnd<Output = Self> + BitOr<Output = Self> + BitXor<Output = Self> + Not<Output = Self> + Sized + 'static {
     const EMPTY: Self;
     const ALL: Self;
 }
Expand description

A bits type that can be used as storage for a flags type.

-

Required Associated Constants§

source

const EMPTY: Self

A value with all bits unset.

-
source

const ALL: Self

A value with all bits set.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Bits for i8

source§

const EMPTY: i8 = 0i8

source§

const ALL: i8 = -1i8

source§

impl Bits for i16

source§

const EMPTY: i16 = 0i16

source§

const ALL: i16 = -1i16

source§

impl Bits for i32

source§

const EMPTY: i32 = 0i32

source§

const ALL: i32 = -1i32

source§

impl Bits for i64

source§

const EMPTY: i64 = 0i64

source§

const ALL: i64 = -1i64

source§

impl Bits for i128

source§

const EMPTY: i128 = 0i128

source§

const ALL: i128 = -1i128

source§

impl Bits for isize

source§

const EMPTY: isize = 0isize

source§

const ALL: isize = -1isize

source§

impl Bits for u8

source§

const EMPTY: u8 = 0u8

source§

const ALL: u8 = 255u8

source§

impl Bits for u16

source§

const EMPTY: u16 = 0u16

source§

const ALL: u16 = 65_535u16

source§

impl Bits for u32

source§

const EMPTY: u32 = 0u32

source§

const ALL: u32 = 4_294_967_295u32

source§

impl Bits for u64

source§

const EMPTY: u64 = 0u64

source§

const ALL: u64 = 18_446_744_073_709_551_615u64

source§

impl Bits for u128

source§

const EMPTY: u128 = 0u128

source§

const ALL: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

impl Bits for usize

source§

const EMPTY: usize = 0usize

source§

const ALL: usize = 18_446_744_073_709_551_615usize

Implementors§

\ No newline at end of file +

Required Associated Constants§

source

const EMPTY: Self

A value with all bits unset.

+
source

const ALL: Self

A value with all bits set.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Bits for i8

source§

const EMPTY: i8 = 0i8

source§

const ALL: i8 = -1i8

source§

impl Bits for i16

source§

const EMPTY: i16 = 0i16

source§

const ALL: i16 = -1i16

source§

impl Bits for i32

source§

const EMPTY: i32 = 0i32

source§

const ALL: i32 = -1i32

source§

impl Bits for i64

source§

const EMPTY: i64 = 0i64

source§

const ALL: i64 = -1i64

source§

impl Bits for i128

source§

const EMPTY: i128 = 0i128

source§

const ALL: i128 = -1i128

source§

impl Bits for isize

source§

const EMPTY: isize = 0isize

source§

const ALL: isize = -1isize

source§

impl Bits for u8

source§

const EMPTY: u8 = 0u8

source§

const ALL: u8 = 255u8

source§

impl Bits for u16

source§

const EMPTY: u16 = 0u16

source§

const ALL: u16 = 65_535u16

source§

impl Bits for u32

source§

const EMPTY: u32 = 0u32

source§

const ALL: u32 = 4_294_967_295u32

source§

impl Bits for u64

source§

const EMPTY: u64 = 0u64

source§

const ALL: u64 = 18_446_744_073_709_551_615u64

source§

impl Bits for u128

source§

const EMPTY: u128 = 0u128

source§

const ALL: u128 = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

source§

impl Bits for usize

source§

const EMPTY: usize = 0usize

source§

const ALL: usize = 18_446_744_073_709_551_615usize

Implementors§

\ No newline at end of file diff --git a/bitflags/trait.Flags.html b/bitflags/trait.Flags.html index 44d916e2a..0e32ee358 100644 --- a/bitflags/trait.Flags.html +++ b/bitflags/trait.Flags.html @@ -1,5 +1,5 @@ -Flags in bitflags - Rust -

Trait bitflags::Flags

source ·
pub trait Flags: Sized + 'static {
+Flags in bitflags - Rust
+    

Trait bitflags::Flags

source ·
pub trait Flags: Sized + 'static {
     type Bits: Bits;
 
     const FLAGS: &'static [Flag<Self>];
@@ -88,46 +88,46 @@ we can count the number of defined named flags:

} assert_eq!(3, defined_flags::<MyFlags>());
-

Required Associated Types§

source

type Bits: Bits

The underlying bits type.

-

Required Associated Constants§

source

const FLAGS: &'static [Flag<Self>]

The set of defined flags.

-

Required Methods§

source

fn bits(&self) -> Self::Bits

Get the underlying bits value.

+

Required Associated Types§

source

type Bits: Bits

The underlying bits type.

+

Required Associated Constants§

source

const FLAGS: &'static [Flag<Self>]

The set of defined flags.

+

Required Methods§

source

fn bits(&self) -> Self::Bits

Get the underlying bits value.

The returned value is exactly the bits set in this flags value.

-
source

fn from_bits_retain(bits: Self::Bits) -> Self

Convert from a bits value exactly.

-

Provided Methods§

source

fn empty() -> Self

Get a flags value with all bits unset.

-
source

fn all() -> Self

Get a flags value with all known bits set.

-
source

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value.

+
source

fn from_bits_retain(bits: Self::Bits) -> Self

Convert from a bits value exactly.

+

Provided Methods§

source

fn empty() -> Self

Get a flags value with all bits unset.

+
source

fn all() -> Self

Get a flags value with all known bits set.

+
source

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value.

This method will return None if any unknown bits are set.

-
source

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.

-
source

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set.

+
source

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.

+
source

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set.

This method will return None if name is empty or doesn’t correspond to any named flag.

-
source

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values.

+
source

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values.

Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

-
source

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values.

+
source

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values.

This method is like Flags::iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.

-
source

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.

-
source

fn intersects(&self, other: Self) -> bool
where +

source

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.

+
source

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.

+
source

fn intersects(&self, other: Self) -> bool
where Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.

-
source

fn contains(&self, other: Self) -> bool
where +

source

fn contains(&self, other: Self) -> bool
where Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.

-
source

fn insert(&mut self, other: Self)
where +

source

fn insert(&mut self, other: Self)
where Self: Sized,

The bitwise or (|) of the bits in two flags values.

-
source

fn remove(&mut self, other: Self)
where +

source

fn remove(&mut self, other: Self)
where Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

-
source

fn toggle(&mut self, other: Self)
where +

source

fn toggle(&mut self, other: Self)
where Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.

-
source

fn set(&mut self, other: Self, value: bool)
where +

source

fn set(&mut self, other: Self, value: bool)
where Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.

-
source

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
source

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.

-
source

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

+
source

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
source

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.

+
source

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
source

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
source

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

+
source

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/clap/all.html b/clap/all.html index 3843e15f8..c75240f21 100644 --- a/clap/all.html +++ b/clap/all.html @@ -1,2 +1,2 @@ -List of all items in this crate +List of all items in this crate
\ No newline at end of file diff --git a/clap/builder/enum.ArgAction.html b/clap/builder/enum.ArgAction.html index a9c7754a6..2fd8043c7 100644 --- a/clap/builder/enum.ArgAction.html +++ b/clap/builder/enum.ArgAction.html @@ -1,4 +1,4 @@ -ArgAction in clap::builder - Rust +ArgAction in clap::builder - Rust

Enum clap::builder::ArgAction

source ·
#[non_exhaustive]
pub enum ArgAction { Set, Append, diff --git a/clap/builder/enum.ArgPredicate.html b/clap/builder/enum.ArgPredicate.html index ce4235495..ed437399f 100644 --- a/clap/builder/enum.ArgPredicate.html +++ b/clap/builder/enum.ArgPredicate.html @@ -1,4 +1,4 @@ -ArgPredicate in clap::builder - Rust +ArgPredicate in clap::builder - Rust
pub enum ArgPredicate {
     IsPresent,
     Equals(OsStr),
diff --git a/clap/builder/enum.Resettable.html b/clap/builder/enum.Resettable.html
index 1062d2a9a..6a491d5ea 100644
--- a/clap/builder/enum.Resettable.html
+++ b/clap/builder/enum.Resettable.html
@@ -1,4 +1,4 @@
-Resettable in clap::builder - Rust
+Resettable in clap::builder - Rust
     

Enum clap::builder::Resettable

source ·
pub enum Resettable<T> {
     Value(T),
     Reset,
diff --git a/clap/builder/enum.ValueHint.html b/clap/builder/enum.ValueHint.html
index a3b8d88bf..f6bed6a79 100644
--- a/clap/builder/enum.ValueHint.html
+++ b/clap/builder/enum.ValueHint.html
@@ -1,4 +1,4 @@
-ValueHint in clap::builder - Rust
+ValueHint in clap::builder - Rust
     

Enum clap::builder::ValueHint

source ·
#[non_exhaustive]
pub enum ValueHint {
Show 13 variants Unknown, Other, diff --git a/clap/builder/index.html b/clap/builder/index.html index 342df3647..233f49636 100644 --- a/clap/builder/index.html +++ b/clap/builder/index.html @@ -1,4 +1,4 @@ -clap::builder - Rust +clap::builder - Rust

Module clap::builder

source ·
Expand description

Define Command line arguments

Modules§

Structs§

Enums§

  • Behavior of arguments when they are encountered while parsing
  • Operations to perform on argument values
  • Clearable builder value
  • Provide shell with hint on how to complete an argument.

Traits§

\ No newline at end of file diff --git a/clap/builder/struct.Arg.html b/clap/builder/struct.Arg.html index 7be00bae6..48af2130a 100644 --- a/clap/builder/struct.Arg.html +++ b/clap/builder/struct.Arg.html @@ -1,4 +1,4 @@ -Arg in clap::builder - Rust +Arg in clap::builder - Rust

Struct clap::builder::Arg

source ·
pub struct Arg { /* private fields */ }
Expand description

The abstract representation of a command line argument. Used to set all the options and relationships that define a valid argument for the program.

There are two methods for constructing Args, using the builder pattern and setting options diff --git a/clap/builder/struct.ArgGroup.html b/clap/builder/struct.ArgGroup.html index c7ac2e9f5..af0e90022 100644 --- a/clap/builder/struct.ArgGroup.html +++ b/clap/builder/struct.ArgGroup.html @@ -1,4 +1,4 @@ -ArgGroup in clap::builder - Rust

+ArgGroup in clap::builder - Rust

Struct clap::builder::ArgGroup

source ·
pub struct ArgGroup { /* private fields */ }
Expand description

Family of related arguments.

By placing arguments in a logical group, you can create easier requirement and exclusion rules instead of having to list each argument individually, or when you want a rule diff --git a/clap/builder/struct.BoolValueParser.html b/clap/builder/struct.BoolValueParser.html index 12be960ee..044f57d55 100644 --- a/clap/builder/struct.BoolValueParser.html +++ b/clap/builder/struct.BoolValueParser.html @@ -1,4 +1,4 @@ -BoolValueParser in clap::builder - Rust

+BoolValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct BoolValueParser {}
Expand description

Implementation for ValueParser::bool

Useful for composing new TypedValueParsers

Implementations§

source§

impl BoolValueParser

source

pub fn new() -> BoolValueParser

Implementation for ValueParser::bool

diff --git a/clap/builder/struct.BoolishValueParser.html b/clap/builder/struct.BoolishValueParser.html index 3b768a613..1dfccd641 100644 --- a/clap/builder/struct.BoolishValueParser.html +++ b/clap/builder/struct.BoolishValueParser.html @@ -1,4 +1,4 @@ -BoolishValueParser in clap::builder - Rust +BoolishValueParser in clap::builder - Rust
#[non_exhaustive]
pub struct BoolishValueParser {}
Expand description

Parse bool-like string values, everything else is true

See also:

source

pub fn cherrypick_commit( &self, cherrypick_commit: &Commit<'_>, our_commit: &Commit<'_>, @@ -913,28 +913,28 @@ unlike stash_save it allows to pass a null message

options: Option<&MergeOptions> ) -> Result<Index, Error>

Create an index of uncommitted changes, representing the result of cherry-picking.

-
source

pub fn branch_remote_name(&self, refname: &str) -> Result<Buf, Error>

Find the remote name of a remote-tracking branch

-
source

pub fn branch_upstream_name(&self, refname: &str) -> Result<Buf, Error>

Retrieves the name of the reference supporting the remote tracking branch, +

source

pub fn branch_remote_name(&self, refname: &str) -> Result<Buf, Error>

Find the remote name of a remote-tracking branch

+
source

pub fn branch_upstream_name(&self, refname: &str) -> Result<Buf, Error>

Retrieves the name of the reference supporting the remote tracking branch, given the name of a local branch reference.

-
source

pub fn branch_upstream_remote(&self, refname: &str) -> Result<Buf, Error>

Retrieve the name of the upstream remote of a local branch.

-
source

pub fn apply( +

source

pub fn branch_upstream_remote(&self, refname: &str) -> Result<Buf, Error>

Retrieve the name of the upstream remote of a local branch.

+
source

pub fn apply( &self, diff: &Diff<'_>, location: ApplyLocation, options: Option<&mut ApplyOptions<'_>> ) -> Result<(), Error>

Apply a Diff to the given repo, making changes directly in the working directory, the index, or both.

-
source

pub fn apply_to_tree( +

source

pub fn apply_to_tree( &self, tree: &Tree<'_>, diff: &Diff<'_>, options: Option<&mut ApplyOptions<'_>> ) -> Result<Index, Error>

Apply a Diff to the provided tree, and return the resulting Index.

-
source

pub fn revert( +

source

pub fn revert( &self, commit: &Commit<'_>, options: Option<&mut RevertOptions<'_>> ) -> Result<(), Error>

Reverts the given commit, producing changes in the index and working directory.

-
source

pub fn revert_commit( +

source

pub fn revert_commit( &self, revert_commit: &Commit<'_>, our_commit: &Commit<'_>, @@ -942,21 +942,21 @@ given the name of a local branch reference.

options: Option<&MergeOptions> ) -> Result<Index, Error>

Reverts the given commit against the given “our” commit, producing an index that reflects the result of the revert.

-
source

pub fn worktrees(&self) -> Result<StringArray, Error>

Lists all the worktrees for the repository

-
source

pub fn find_worktree(&self, name: &str) -> Result<Worktree, Error>

Opens a worktree by name for the given repository

+
source

pub fn worktrees(&self) -> Result<StringArray, Error>

Lists all the worktrees for the repository

+
source

pub fn find_worktree(&self, name: &str) -> Result<Worktree, Error>

Opens a worktree by name for the given repository

This can open any worktree that the worktrees method returns.

-
source

pub fn worktree<'a>( +

source

pub fn worktree<'a>( &'a self, name: &str, path: &Path, opts: Option<&WorktreeAddOptions<'a>> ) -> Result<Worktree, Error>

Creates a new worktree for the repository

-
source

pub fn transaction<'a>(&'a self) -> Result<Transaction<'a>, Error>

Create a new transaction

-
source

pub fn mailmap(&self) -> Result<Mailmap, Error>

Gets this repository’s mailmap.

-
source

pub fn mergehead_foreach<C>(&mut self, callback: C) -> Result<(), Error>
where +

source

pub fn transaction<'a>(&'a self) -> Result<Transaction<'a>, Error>

Create a new transaction

+
source

pub fn mailmap(&self) -> Result<Mailmap, Error>

Gets this repository’s mailmap.

+
source

pub fn mergehead_foreach<C>(&mut self, callback: C) -> Result<(), Error>
where C: FnMut(&Oid) -> bool,

If a merge is in progress, invoke ‘callback’ for each commit ID in the MERGE_HEAD file.

-
source

pub fn fetchhead_foreach<C>(&self, callback: C) -> Result<(), Error>
where +

source

pub fn fetchhead_foreach<C>(&self, callback: C) -> Result<(), Error>
where C: FnMut(&str, &[u8], &Oid, bool) -> bool,

Invoke ‘callback’ for each entry in the given FETCH_HEAD file.

callback will be called with with following arguments:

    @@ -965,7 +965,7 @@ MERGE_HEAD file.

  • &Oid: the reference target OID
  • bool: was the reference the result of a merge
-

Trait Implementations§

source§

impl Drop for Repository

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for Repository

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Drop for Repository

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Send for Repository

Auto Trait Implementations§

§

impl RefUnwindSafe for Repository

§

impl !Sync for Repository

§

impl Unpin for Repository

§

impl UnwindSafe for Repository

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.RepositoryInitMode.html b/git2/struct.RepositoryInitMode.html index 1d273e3fb..71bfa0c6d 100644 --- a/git2/struct.RepositoryInitMode.html +++ b/git2/struct.RepositoryInitMode.html @@ -1,4 +1,4 @@ -RepositoryInitMode in git2 - Rust +RepositoryInitMode in git2 - Rust
pub struct RepositoryInitMode(/* private fields */);
Expand description

Mode options for RepositoryInitOptions

Implementations§

source§

impl RepositoryInitMode

source

pub const SHARED_UMASK: Self = _

Use permissions configured by umask - the default

source

pub const SHARED_GROUP: Self = _

Use --shared=group behavior, chmod’ing the new repo to be @@ -38,30 +38,30 @@ will be yielded together as a final flags value.

source

pub const fn iter_names(&self) -> IterNames<RepositoryInitMode>

Yield a set of contained named flags values.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source§

impl RepositoryInitMode

source

pub fn is_shared_umask(&self) -> bool

source

pub fn is_shared_group(&self) -> bool

source

pub fn is_shared_all(&self) -> bool

Trait Implementations§

source§

impl Binary for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for RepositoryInitMode

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = RepositoryInitMode

The resulting type after applying the & operator.
source§

impl BitAndAssign for RepositoryInitMode

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
source§

impl RepositoryInitMode

source

pub fn is_shared_umask(&self) -> bool

source

pub fn is_shared_group(&self) -> bool

source

pub fn is_shared_all(&self) -> bool

Trait Implementations§

source§

impl Binary for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for RepositoryInitMode

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
§

type Output = RepositoryInitMode

The resulting type after applying the & operator.
source§

impl BitAndAssign for RepositoryInitMode

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for RepositoryInitMode

source§

fn bitor(self, other: RepositoryInitMode) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = RepositoryInitMode

The resulting type after applying the | operator.
source§

impl BitOrAssign for RepositoryInitMode

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = RepositoryInitMode

The resulting type after applying the | operator.
source§

impl BitOrAssign for RepositoryInitMode

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for RepositoryInitMode

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = RepositoryInitMode

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for RepositoryInitMode

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
§

type Output = RepositoryInitMode

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for RepositoryInitMode

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

source§

impl Clone for RepositoryInitMode

source§

fn clone(&self) -> RepositoryInitMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<RepositoryInitMode> for RepositoryInitMode

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RepositoryInitMode

source§

const FLAGS: &'static [Flag<RepositoryInitMode>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RepositoryInitMode

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RepositoryInitMode> for RepositoryInitMode

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for RepositoryInitMode

§

type Item = RepositoryInitMode

The type of the elements being iterated over.
§

type IntoIter = Iter<RepositoryInitMode>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RepositoryInitMode

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = RepositoryInitMode

The resulting type after applying the ! operator.
source§

impl Octal for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for RepositoryInitMode

source§

fn eq(&self, other: &RepositoryInitMode) -> bool

This method tests for self and other values to be equal, and is used +
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RepositoryInitMode

source§

const FLAGS: &'static [Flag<RepositoryInitMode>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RepositoryInitMode

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RepositoryInitMode> for RepositoryInitMode

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for RepositoryInitMode

§

type Item = RepositoryInitMode

The type of the elements being iterated over.
§

type IntoIter = Iter<RepositoryInitMode>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RepositoryInitMode

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = RepositoryInitMode

The resulting type after applying the ! operator.
source§

impl Octal for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for RepositoryInitMode

source§

fn eq(&self, other: &RepositoryInitMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for RepositoryInitMode

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for RepositoryInitMode

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
§

type Output = RepositoryInitMode

The resulting type after applying the - operator.
source§

impl SubAssign for RepositoryInitMode

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

+
§

type Output = RepositoryInitMode

The resulting type after applying the - operator.
source§

impl SubAssign for RepositoryInitMode

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RepositoryInitMode

source§

impl Eq for RepositoryInitMode

source§

impl StructuralPartialEq for RepositoryInitMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for RepositoryInitMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RepositoryInitMode

source§

impl Eq for RepositoryInitMode

source§

impl StructuralPartialEq for RepositoryInitMode

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.RepositoryInitOptions.html b/git2/struct.RepositoryInitOptions.html index 7671f8bb3..4ba872556 100644 --- a/git2/struct.RepositoryInitOptions.html +++ b/git2/struct.RepositoryInitOptions.html @@ -1,46 +1,46 @@ -RepositoryInitOptions in git2 - Rust -
pub struct RepositoryInitOptions { /* private fields */ }
Expand description

Options which can be used to configure how a repository is initialized

-

Implementations§

source§

impl RepositoryInitOptions

source

pub fn new() -> RepositoryInitOptions

Creates a default set of initialization options.

+RepositoryInitOptions in git2 - Rust +
pub struct RepositoryInitOptions { /* private fields */ }
Expand description

Options which can be used to configure how a repository is initialized

+

Implementations§

source§

impl RepositoryInitOptions

source

pub fn new() -> RepositoryInitOptions

Creates a default set of initialization options.

By default this will set flags for creating all necessary directories and initializing a directory from the user-configured templates path.

-
source

pub fn bare(&mut self, bare: bool) -> &mut RepositoryInitOptions

Create a bare repository with no working directory.

+
source

pub fn bare(&mut self, bare: bool) -> &mut RepositoryInitOptions

Create a bare repository with no working directory.

Defaults to false.

-
source

pub fn no_reinit(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Return an error if the repository path appears to already be a git +

source

pub fn no_reinit(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Return an error if the repository path appears to already be a git repository.

Defaults to false.

-
source

pub fn no_dotgit_dir(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Normally a ‘/.git/’ will be appended to the repo path for non-bare repos +

source

pub fn no_dotgit_dir(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Normally a ‘/.git/’ will be appended to the repo path for non-bare repos (if it is not already there), but passing this flag prevents that behavior.

Defaults to false.

-
source

pub fn mkdir(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Make the repo path (and workdir path) as needed. The “.git” directory +

source

pub fn mkdir(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Make the repo path (and workdir path) as needed. The “.git” directory will always be created regardless of this flag.

Defaults to true.

-
source

pub fn mkpath(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Recursively make all components of the repo and workdir path as +

source

pub fn mkpath(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Recursively make all components of the repo and workdir path as necessary.

Defaults to true.

-
source

pub fn mode(&mut self, mode: RepositoryInitMode) -> &mut RepositoryInitOptions

Set to one of the RepositoryInit constants, or a custom value.

-
source

pub fn external_template(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Enable or disable using external templates.

+
source

pub fn mode(&mut self, mode: RepositoryInitMode) -> &mut RepositoryInitOptions

Set to one of the RepositoryInit constants, or a custom value.

+
source

pub fn external_template(&mut self, enabled: bool) -> &mut RepositoryInitOptions

Enable or disable using external templates.

If enabled, then the template_path option will be queried first, then init.templatedir from the global config, and finally /usr/share/git-core-templates will be used (if it exists).

Defaults to true.

-
source

pub fn workdir_path(&mut self, path: &Path) -> &mut RepositoryInitOptions

The path to the working directory.

+
source

pub fn workdir_path(&mut self, path: &Path) -> &mut RepositoryInitOptions

The path to the working directory.

If this is a relative path it will be evaluated relative to the repo path. If this is not the “natural” working directory, a .git gitlink file will be created here linking to the repo path.

-
source

pub fn description(&mut self, desc: &str) -> &mut RepositoryInitOptions

If set, this will be used to initialize the “description” file in the +

source

pub fn description(&mut self, desc: &str) -> &mut RepositoryInitOptions

If set, this will be used to initialize the “description” file in the repository instead of using the template content.

-
source

pub fn template_path(&mut self, path: &Path) -> &mut RepositoryInitOptions

When the external_template option is set, this is the first location +

source

pub fn template_path(&mut self, path: &Path) -> &mut RepositoryInitOptions

When the external_template option is set, this is the first location to check for the template directory.

If this is not configured, then the default locations will be searched instead.

-
source

pub fn initial_head(&mut self, head: &str) -> &mut RepositoryInitOptions

The name of the head to point HEAD at.

+
source

pub fn initial_head(&mut self, head: &str) -> &mut RepositoryInitOptions

The name of the head to point HEAD at.

If not configured, this will be taken from your git configuration. If this begins with refs/ it will be used verbatim; otherwise refs/heads/ will be prefixed

-
source

pub fn origin_url(&mut self, url: &str) -> &mut RepositoryInitOptions

If set, then after the rest of the repository initialization is +

source

pub fn origin_url(&mut self, url: &str) -> &mut RepositoryInitOptions

If set, then after the rest of the repository initialization is completed an origin remote will be added pointing to this URL.

-
source

pub unsafe fn raw(&self) -> git_repository_init_options

Creates a set of raw init options to be used with +

source

pub unsafe fn raw(&self) -> git_repository_init_options

Creates a set of raw init options to be used with git_repository_init_ext.

This method is unsafe as the returned value may have pointers to the interior of this structure.

diff --git a/git2/struct.RepositoryOpenFlags.html b/git2/struct.RepositoryOpenFlags.html index ed87e7555..84d8496bb 100644 --- a/git2/struct.RepositoryOpenFlags.html +++ b/git2/struct.RepositoryOpenFlags.html @@ -1,4 +1,4 @@ -RepositoryOpenFlags in git2 - Rust +RepositoryOpenFlags in git2 - Rust
pub struct RepositoryOpenFlags(/* private fields */);
Expand description

Flags for Repository::open_ext

Implementations§

source§

impl RepositoryOpenFlags

Only open the specified path; don’t walk upward searching.

source

pub const CROSS_FS: Self = _

Search across filesystem boundaries.

@@ -39,21 +39,21 @@ will be yielded together as a final flags value.

source

pub const fn iter_names(&self) -> IterNames<RepositoryOpenFlags>

Yield a set of contained named flags values.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source§

impl RepositoryOpenFlags

source

pub fn is_cross_fs(&self) -> bool

source

pub fn is_bare(&self) -> bool

source

pub fn is_no_dotgit(&self) -> bool

source

pub fn is_from_env(&self) -> bool

Trait Implementations§

source§

impl Binary for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for RepositoryOpenFlags

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = RepositoryOpenFlags

The resulting type after applying the & operator.
source§

impl BitAndAssign for RepositoryOpenFlags

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
source§

impl RepositoryOpenFlags

source

pub fn is_cross_fs(&self) -> bool

source

pub fn is_bare(&self) -> bool

source

pub fn is_no_dotgit(&self) -> bool

source

pub fn is_from_env(&self) -> bool

Trait Implementations§

source§

impl Binary for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for RepositoryOpenFlags

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
§

type Output = RepositoryOpenFlags

The resulting type after applying the & operator.
source§

impl BitAndAssign for RepositoryOpenFlags

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for RepositoryOpenFlags

source§

fn bitor(self, other: RepositoryOpenFlags) -> Self

The bitwise or (|) of the bits in two flags values.

§

type Output = RepositoryOpenFlags

The resulting type after applying the | operator.
source§

impl BitOrAssign for RepositoryOpenFlags

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for RepositoryOpenFlags

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = RepositoryOpenFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for RepositoryOpenFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
§

type Output = RepositoryOpenFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for RepositoryOpenFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

source§

impl Clone for RepositoryOpenFlags

source§

fn clone(&self) -> RepositoryOpenFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<RepositoryOpenFlags> for RepositoryOpenFlags

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RepositoryOpenFlags

source§

const FLAGS: &'static [Flag<RepositoryOpenFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RepositoryOpenFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RepositoryOpenFlags> for RepositoryOpenFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for RepositoryOpenFlags

§

type Item = RepositoryOpenFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<RepositoryOpenFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RepositoryOpenFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RepositoryOpenFlags

source§

const FLAGS: &'static [Flag<RepositoryOpenFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RepositoryOpenFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RepositoryOpenFlags> for RepositoryOpenFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for RepositoryOpenFlags

§

type Item = RepositoryOpenFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<RepositoryOpenFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RepositoryOpenFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

§

type Output = RepositoryOpenFlags

The resulting type after applying the ! operator.
source§

impl Octal for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for RepositoryOpenFlags

source§

fn eq(&self, other: &RepositoryOpenFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for RepositoryOpenFlags

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for RepositoryOpenFlags

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

@@ -62,7 +62,7 @@ sufficient, and should not be overridden without very good reason.
§

type Output = RepositoryOpenFlags

The resulting type after applying the - operator.
source§

impl SubAssign for RepositoryOpenFlags

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RepositoryOpenFlags

source§

impl Eq for RepositoryOpenFlags

source§

impl StructuralPartialEq for RepositoryOpenFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for RepositoryOpenFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RepositoryOpenFlags

source§

impl Eq for RepositoryOpenFlags

source§

impl StructuralPartialEq for RepositoryOpenFlags

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.RevertOptions.html b/git2/struct.RevertOptions.html index 1a88e1917..fb3e8c4b4 100644 --- a/git2/struct.RevertOptions.html +++ b/git2/struct.RevertOptions.html @@ -1,4 +1,4 @@ -RevertOptions in git2 - Rust +RevertOptions in git2 - Rust

Struct git2::RevertOptions

source ·
pub struct RevertOptions<'cb> { /* private fields */ }
Expand description

Options to specify when reverting

Implementations§

source§

impl<'cb> RevertOptions<'cb>

source

pub fn new() -> RevertOptions<'cb>

Creates a default set of revert options

source

pub fn mainline(&mut self, mainline: u32) -> &mut Self

Set the mainline value

diff --git a/git2/struct.RevparseMode.html b/git2/struct.RevparseMode.html index 9e733e929..90ff1a1d9 100644 --- a/git2/struct.RevparseMode.html +++ b/git2/struct.RevparseMode.html @@ -1,4 +1,4 @@ -RevparseMode in git2 - Rust +RevparseMode in git2 - Rust

Struct git2::RevparseMode

source ·
pub struct RevparseMode(/* private fields */);
Expand description

Flags for the return value of Repository::revparse

Implementations§

source§

impl RevparseMode

source

pub const SINGLE: Self = _

The spec targeted a single object

source

pub const RANGE: Self = _

The spec targeted a range of commits

@@ -38,29 +38,29 @@ will be yielded together as a final flags value.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

source§

impl RevparseMode

source

pub fn is_no_single(&self) -> bool

source

pub fn is_range(&self) -> bool

source

pub fn is_merge_base(&self) -> bool

Trait Implementations§

source§

impl Binary for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for RevparseMode

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = RevparseMode

The resulting type after applying the & operator.
source§

impl BitAndAssign for RevparseMode

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
§

type Output = RevparseMode

The resulting type after applying the & operator.
source§

impl BitAndAssign for RevparseMode

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for RevparseMode

source§

fn bitor(self, other: RevparseMode) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = RevparseMode

The resulting type after applying the | operator.
source§

impl BitOrAssign for RevparseMode

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = RevparseMode

The resulting type after applying the | operator.
source§

impl BitOrAssign for RevparseMode

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for RevparseMode

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

§

type Output = RevparseMode

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for RevparseMode

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

-
source§

impl Clone for RevparseMode

source§

fn clone(&self) -> RevparseMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<RevparseMode> for RevparseMode

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RevparseMode

source§

const FLAGS: &'static [Flag<RevparseMode>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RevparseMode

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RevparseMode> for RevparseMode

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for RevparseMode

§

type Item = RevparseMode

The type of the elements being iterated over.
§

type IntoIter = Iter<RevparseMode>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RevparseMode

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = RevparseMode

The resulting type after applying the ! operator.
source§

impl Octal for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for RevparseMode

source§

fn eq(&self, other: &RevparseMode) -> bool

This method tests for self and other values to be equal, and is used +
source§

impl Clone for RevparseMode

source§

fn clone(&self) -> RevparseMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<RevparseMode> for RevparseMode

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for RevparseMode

source§

const FLAGS: &'static [Flag<RevparseMode>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> RevparseMode

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<RevparseMode> for RevparseMode

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for RevparseMode

§

type Item = RevparseMode

The type of the elements being iterated over.
§

type IntoIter = Iter<RevparseMode>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for RevparseMode

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = RevparseMode

The resulting type after applying the ! operator.
source§

impl Octal for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for RevparseMode

source§

fn eq(&self, other: &RevparseMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for RevparseMode

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for RevparseMode

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
§

type Output = RevparseMode

The resulting type after applying the - operator.
source§

impl SubAssign for RevparseMode

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

+
§

type Output = RevparseMode

The resulting type after applying the - operator.
source§

impl SubAssign for RevparseMode

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RevparseMode

source§

impl Eq for RevparseMode

source§

impl StructuralPartialEq for RevparseMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for RevparseMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for RevparseMode

source§

impl Eq for RevparseMode

source§

impl StructuralPartialEq for RevparseMode

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.Revspec.html b/git2/struct.Revspec.html index 8368270b5..dc01baa93 100644 --- a/git2/struct.Revspec.html +++ b/git2/struct.Revspec.html @@ -1,4 +1,4 @@ -Revspec in git2 - Rust +Revspec in git2 - Rust

Struct git2::Revspec

source ·
pub struct Revspec<'repo> { /* private fields */ }
Expand description

A revspec represents a range of revisions within a repository.

Implementations§

source§

impl<'repo> Revspec<'repo>

source

pub fn from_objects( from: Option<Object<'repo>>, diff --git a/git2/struct.Revwalk.html b/git2/struct.Revwalk.html index fbee44a91..8ce9271a7 100644 --- a/git2/struct.Revwalk.html +++ b/git2/struct.Revwalk.html @@ -1,4 +1,4 @@ -Revwalk in git2 - Rust +Revwalk in git2 - Rust

Struct git2::Revwalk

source ·
pub struct Revwalk<'repo> { /* private fields */ }
Expand description

A revwalk allows traversal of the commit graph defined by including one or more leaves and excluding one or more roots.

Implementations§

source§

impl<'repo> Revwalk<'repo>

source

pub fn reset(&mut self) -> Result<(), Error>

Reset a revwalk to allow re-configuring it.

diff --git a/git2/struct.Signature.html b/git2/struct.Signature.html index d3083d728..24e30cee4 100644 --- a/git2/struct.Signature.html +++ b/git2/struct.Signature.html @@ -1,13 +1,13 @@ -Signature in git2 - Rust -

Struct git2::Signature

source ·
pub struct Signature<'a> { /* private fields */ }
Expand description

A Signature is used to indicate authorship of various actions throughout the +Signature in git2 - Rust

+

Struct git2::Signature

source ·
pub struct Signature<'a> { /* private fields */ }
Expand description

A Signature is used to indicate authorship of various actions throughout the library.

Signatures contain a name, email, and timestamp. All fields can be specified with new while the now constructor omits the timestamp. The Repository::signature method can be used to create a default signature with name and email values read from the configuration.

-

Implementations§

source§

impl<'a> Signature<'a>

source

pub fn now(name: &str, email: &str) -> Result<Signature<'static>, Error>

Create a new action signature with a timestamp of ‘now’.

+

Implementations§

source§

impl<'a> Signature<'a>

source

pub fn now(name: &str, email: &str) -> Result<Signature<'static>, Error>

Create a new action signature with a timestamp of ‘now’.

See new for more information

-
source

pub fn new( +

source

pub fn new( name: &str, email: &str, time: &Time @@ -15,18 +15,18 @@ with name and email values read from the configuration.

The time specified is in seconds since the epoch, and the offset is the time zone offset in minutes.

Returns error if either name or email contain angle brackets.

-

source

pub fn name(&self) -> Option<&str>

Gets the name on the signature.

+
source

pub fn name(&self) -> Option<&str>

Gets the name on the signature.

Returns None if the name is not valid utf-8

-
source

pub fn name_bytes(&self) -> &[u8]

Gets the name on the signature as a byte slice.

-
source

pub fn email(&self) -> Option<&str>

Gets the email on the signature.

+
source

pub fn name_bytes(&self) -> &[u8]

Gets the name on the signature as a byte slice.

+
source

pub fn email(&self) -> Option<&str>

Gets the email on the signature.

Returns None if the email is not valid utf-8

-
source

pub fn email_bytes(&self) -> &[u8]

Gets the email on the signature as a byte slice.

-
source

pub fn when(&self) -> Time

Get the when of this signature.

-
source

pub fn to_owned(&self) -> Signature<'static>

Convert a signature of any lifetime into an owned signature with a +

source

pub fn email_bytes(&self) -> &[u8]

Gets the email on the signature as a byte slice.

+
source

pub fn when(&self) -> Time

Get the when of this signature.

+
source

pub fn to_owned(&self) -> Signature<'static>

Convert a signature of any lifetime into an owned signature with a static lifetime.

-

Trait Implementations§

source§

impl Clone for Signature<'static>

source§

fn clone(&self) -> Signature<'static>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Display for Signature<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Drop for Signature<'a>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl PartialEq for Signature<'_>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

source§

impl Clone for Signature<'static>

source§

fn clone(&self) -> Signature<'static>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a> Display for Signature<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> Drop for Signature<'a>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl PartialEq for Signature<'_>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for Signature<'_>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Signature<'a>

§

impl<'a> !Send for Signature<'a>

§

impl<'a> !Sync for Signature<'a>

§

impl<'a> Unpin for Signature<'a>

§

impl<'a> UnwindSafe for Signature<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

source§

impl Eq for Signature<'_>

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Signature<'a>

§

impl<'a> !Send for Signature<'a>

§

impl<'a> !Sync for Signature<'a>

§

impl<'a> Unpin for Signature<'a>

§

impl<'a> UnwindSafe for Signature<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.Sort.html b/git2/struct.Sort.html index cd6a15053..a250d66f4 100644 --- a/git2/struct.Sort.html +++ b/git2/struct.Sort.html @@ -1,4 +1,4 @@ -Sort in git2 - Rust +Sort in git2 - Rust

Struct git2::Sort

source ·
pub struct Sort(/* private fields */);
Expand description

Orderings that may be specified for Revwalk iteration.

Implementations§

source§

impl Sort

source

pub const NONE: Self = _

Sort the repository contents in no particular ordering.

This sorting is arbitrary, implementation-specific, and subject to @@ -44,22 +44,22 @@ will be yielded together as a final flags value.

source

pub const fn iter_names(&self) -> IterNames<Sort>

Yield a set of contained named flags values.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source§

impl Sort

source

pub fn is_none(&self) -> bool

source

pub fn is_topological(&self) -> bool

source

pub fn is_time(&self) -> bool

source

pub fn is_reverse(&self) -> bool

Trait Implementations§

source§

impl Binary for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for Sort

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
source§

impl Sort

source

pub fn is_none(&self) -> bool

source

pub fn is_topological(&self) -> bool

source

pub fn is_time(&self) -> bool

source

pub fn is_reverse(&self) -> bool

Trait Implementations§

source§

impl Binary for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for Sort

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

§

type Output = Sort

The resulting type after applying the & operator.
source§

impl BitAndAssign for Sort

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for Sort

source§

fn bitor(self, other: Sort) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = Sort

The resulting type after applying the | operator.
source§

impl BitOrAssign for Sort

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = Sort

The resulting type after applying the | operator.
source§

impl BitOrAssign for Sort

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for Sort

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = Sort

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for Sort

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

-
source§

impl Clone for Sort

source§

fn clone(&self) -> Sort

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<Sort> for Sort

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for Sort

source§

const FLAGS: &'static [Flag<Sort>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> Sort

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<Sort> for Sort

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for Sort

§

type Item = Sort

The type of the elements being iterated over.
§

type IntoIter = Iter<Sort>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for Sort

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = Sort

The resulting type after applying the ! operator.
source§

impl Octal for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for Sort

source§

fn eq(&self, other: &Sort) -> bool

This method tests for self and other values to be equal, and is used +
§

type Output = Sort

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for Sort

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
source§

impl Clone for Sort

source§

fn clone(&self) -> Sort

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<Sort> for Sort

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for Sort

source§

const FLAGS: &'static [Flag<Sort>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> Sort

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<Sort> for Sort

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for Sort

§

type Item = Sort

The type of the elements being iterated over.
§

type IntoIter = Iter<Sort>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for Sort

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = Sort

The resulting type after applying the ! operator.
source§

impl Octal for Sort

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for Sort

source§

fn eq(&self, other: &Sort) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for Sort

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for Sort

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. diff --git a/git2/struct.StashApplyFlags.html b/git2/struct.StashApplyFlags.html index 821059a49..a25438164 100644 --- a/git2/struct.StashApplyFlags.html +++ b/git2/struct.StashApplyFlags.html @@ -1,4 +1,4 @@ -StashApplyFlags in git2 - Rust

+StashApplyFlags in git2 - Rust

Struct git2::StashApplyFlags

source ·
pub struct StashApplyFlags(/* private fields */);

Implementations§

source§

impl StashApplyFlags

source

pub const DEFAULT: Self = _

source

pub const REINSTATE_INDEX: Self = _

Try to reinstate not only the working tree’s changes, but also the index’s changes.

source§

impl StashApplyFlags

source

pub const fn empty() -> Self

Get a flags value with all bits unset.

@@ -35,30 +35,30 @@ will be yielded together as a final flags value.

source

pub const fn iter_names(&self) -> IterNames<StashApplyFlags>

Yield a set of contained named flags values.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source§

impl StashApplyFlags

source

pub fn is_default(&self) -> bool

source

pub fn is_reinstate_index(&self) -> bool

Trait Implementations§

source§

impl Binary for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for StashApplyFlags

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = StashApplyFlags

The resulting type after applying the & operator.
source§

impl BitAndAssign for StashApplyFlags

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
source§

impl StashApplyFlags

source

pub fn is_default(&self) -> bool

source

pub fn is_reinstate_index(&self) -> bool

Trait Implementations§

source§

impl Binary for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for StashApplyFlags

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
§

type Output = StashApplyFlags

The resulting type after applying the & operator.
source§

impl BitAndAssign for StashApplyFlags

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for StashApplyFlags

source§

fn bitor(self, other: StashApplyFlags) -> Self

The bitwise or (|) of the bits in two flags values.

§

type Output = StashApplyFlags

The resulting type after applying the | operator.
source§

impl BitOrAssign for StashApplyFlags

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for StashApplyFlags

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = StashApplyFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for StashApplyFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

-
source§

impl Clone for StashApplyFlags

source§

fn clone(&self) -> StashApplyFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StashApplyFlags

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Extend<StashApplyFlags> for StashApplyFlags

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for StashApplyFlags

source§

const FLAGS: &'static [Flag<StashApplyFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> StashApplyFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<StashApplyFlags> for StashApplyFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for StashApplyFlags

§

type Item = StashApplyFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<StashApplyFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for StashApplyFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = StashApplyFlags

The resulting type after applying the ! operator.
source§

impl Octal for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for StashApplyFlags

source§

fn eq(&self, other: &StashApplyFlags) -> bool

This method tests for self and other values to be equal, and is used +
§

type Output = StashApplyFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for StashApplyFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
source§

impl Clone for StashApplyFlags

source§

fn clone(&self) -> StashApplyFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StashApplyFlags

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Extend<StashApplyFlags> for StashApplyFlags

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for StashApplyFlags

source§

const FLAGS: &'static [Flag<StashApplyFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> StashApplyFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<StashApplyFlags> for StashApplyFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for StashApplyFlags

§

type Item = StashApplyFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<StashApplyFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for StashApplyFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = StashApplyFlags

The resulting type after applying the ! operator.
source§

impl Octal for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for StashApplyFlags

source§

fn eq(&self, other: &StashApplyFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for StashApplyFlags

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for StashApplyFlags

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
§

type Output = StashApplyFlags

The resulting type after applying the - operator.
source§

impl SubAssign for StashApplyFlags

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

+
§

type Output = StashApplyFlags

The resulting type after applying the - operator.
source§

impl SubAssign for StashApplyFlags

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for StashApplyFlags

source§

impl Eq for StashApplyFlags

source§

impl StructuralPartialEq for StashApplyFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for StashApplyFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for StashApplyFlags

source§

impl Eq for StashApplyFlags

source§

impl StructuralPartialEq for StashApplyFlags

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.StashApplyOptions.html b/git2/struct.StashApplyOptions.html index b3cfaed49..745f9842b 100644 --- a/git2/struct.StashApplyOptions.html +++ b/git2/struct.StashApplyOptions.html @@ -1,4 +1,4 @@ -StashApplyOptions in git2 - Rust +StashApplyOptions in git2 - Rust

Struct git2::StashApplyOptions

source ·
pub struct StashApplyOptions<'cb> { /* private fields */ }
Expand description

Stash application options structure

Implementations§

source§

impl<'cb> StashApplyOptions<'cb>

source

pub fn new() -> StashApplyOptions<'cb>

Creates a default set of merge options.

source

pub fn reinstantiate_index(&mut self) -> &mut StashApplyOptions<'cb>

Set stash application flag to GIT_STASH_APPLY_REINSTATE_INDEX

diff --git a/git2/struct.StashFlags.html b/git2/struct.StashFlags.html index 7bc58b259..cef7a6627 100644 --- a/git2/struct.StashFlags.html +++ b/git2/struct.StashFlags.html @@ -1,4 +1,4 @@ -StashFlags in git2 - Rust +StashFlags in git2 - Rust

Struct git2::StashFlags

source ·
pub struct StashFlags(/* private fields */);

Implementations§

source§

impl StashFlags

source

pub const DEFAULT: Self = _

source

pub const KEEP_INDEX: Self = _

All changes already added to the index are left intact in the working directory

source

pub const INCLUDE_UNTRACKED: Self = _

All untracked files are also stashed and then cleaned up @@ -43,24 +43,24 @@ Any unknown bits, or bits not corresponding to a contained flag will not be yiel

source§

impl StashFlags

source

pub fn is_default(&self) -> bool

source

pub fn is_keep_index(&self) -> bool

source

pub fn is_include_untracked(&self) -> bool

source

pub fn is_include_ignored(&self) -> bool

Trait Implementations§

source§

impl Binary for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for StashFlags

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

§

type Output = StashFlags

The resulting type after applying the & operator.
source§

impl BitAndAssign for StashFlags

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for StashFlags

source§

fn bitor(self, other: StashFlags) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = StashFlags

The resulting type after applying the | operator.
source§

impl BitOrAssign for StashFlags

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = StashFlags

The resulting type after applying the | operator.
source§

impl BitOrAssign for StashFlags

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for StashFlags

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = StashFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for StashFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
§

type Output = StashFlags

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for StashFlags

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

source§

impl Clone for StashFlags

source§

fn clone(&self) -> StashFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StashFlags

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Extend<StashFlags> for StashFlags

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for StashFlags

source§

const FLAGS: &'static [Flag<StashFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> StashFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<StashFlags> for StashFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for StashFlags

§

type Item = StashFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<StashFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for StashFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = StashFlags

The resulting type after applying the ! operator.
source§

impl Octal for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for StashFlags

source§

fn eq(&self, other: &StashFlags) -> bool

This method tests for self and other values to be equal, and is used +
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for StashFlags

source§

const FLAGS: &'static [Flag<StashFlags>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> StashFlags

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<StashFlags> for StashFlags

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for StashFlags

§

type Item = StashFlags

The type of the elements being iterated over.
§

type IntoIter = Iter<StashFlags>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for StashFlags

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = StashFlags

The resulting type after applying the ! operator.
source§

impl Octal for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for StashFlags

source§

fn eq(&self, other: &StashFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for StashFlags

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for StashFlags

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
§

type Output = StashFlags

The resulting type after applying the - operator.
source§

impl SubAssign for StashFlags

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

+
§

type Output = StashFlags

The resulting type after applying the - operator.
source§

impl SubAssign for StashFlags

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

source§

impl UpperHex for StashFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for StashFlags

source§

impl Eq for StashFlags

source§

impl StructuralPartialEq for StashFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/git2/struct.StashSaveOptions.html b/git2/struct.StashSaveOptions.html index 5cec96519..ce4de0e49 100644 --- a/git2/struct.StashSaveOptions.html +++ b/git2/struct.StashSaveOptions.html @@ -1,4 +1,4 @@ -StashSaveOptions in git2 - Rust +StashSaveOptions in git2 - Rust

Struct git2::StashSaveOptions

source ·
pub struct StashSaveOptions<'a> { /* private fields */ }
Expand description

Stash application options structure

Implementations§

source§

impl<'a> StashSaveOptions<'a>

source

pub fn new(stasher: Signature<'a>) -> Self

Creates a default

source

pub fn flags(&mut self, flags: Option<StashFlags>) -> &mut Self

Customize optional flags field

diff --git a/git2/struct.Status.html b/git2/struct.Status.html index 70cc2e1d0..6b39e5bea 100644 --- a/git2/struct.Status.html +++ b/git2/struct.Status.html @@ -1,4 +1,4 @@ -Status in git2 - Rust +Status in git2 - Rust

Struct git2::Status

source ·
pub struct Status(/* private fields */);
Expand description

Status flags for a single file

A combination of these values will be returned to indicate the status of a file. Status compares the working directory, the index, and the @@ -41,21 +41,21 @@ will be yielded together as a final flags value.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

source§

impl Status

source

pub fn is_index_new(&self) -> bool

source

pub fn is_index_modified(&self) -> bool

source

pub fn is_index_deleted(&self) -> bool

source

pub fn is_index_renamed(&self) -> bool

source

pub fn is_index_typechange(&self) -> bool

source

pub fn is_wt_new(&self) -> bool

source

pub fn is_wt_modified(&self) -> bool

source

pub fn is_wt_deleted(&self) -> bool

source

pub fn is_wt_typechange(&self) -> bool

source

pub fn is_wt_renamed(&self) -> bool

source

pub fn is_ignored(&self) -> bool

source

pub fn is_conflicted(&self) -> bool

Trait Implementations§

source§

impl Binary for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for Status

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = Status

The resulting type after applying the & operator.
source§

impl BitAndAssign for Status

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
§

type Output = Status

The resulting type after applying the & operator.
source§

impl BitAndAssign for Status

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for Status

source§

fn bitor(self, other: Status) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = Status

The resulting type after applying the | operator.
source§

impl BitOrAssign for Status

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = Status

The resulting type after applying the | operator.
source§

impl BitOrAssign for Status

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for Status

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = Status

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for Status

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

-
source§

impl Clone for Status

source§

fn clone(&self) -> Status

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<Status> for Status

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for Status

source§

const FLAGS: &'static [Flag<Status>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> Status

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<Status> for Status

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for Status

§

type Item = Status

The type of the elements being iterated over.
§

type IntoIter = Iter<Status>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for Status

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = Status

The resulting type after applying the ! operator.
source§

impl Octal for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for Status

source§

fn eq(&self, other: &Status) -> bool

This method tests for self and other values to be equal, and is used +
§

type Output = Status

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for Status

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
source§

impl Clone for Status

source§

fn clone(&self) -> Status

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<Status> for Status

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for Status

source§

const FLAGS: &'static [Flag<Status>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> Status

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<Status> for Status

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for Status

§

type Item = Status

The type of the elements being iterated over.
§

type IntoIter = Iter<Status>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for Status

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = Status

The resulting type after applying the ! operator.
source§

impl Octal for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for Status

source§

fn eq(&self, other: &Status) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for Status

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for Status

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. @@ -63,7 +63,7 @@ sufficient, and should not be overridden without very good reason.

§

type Output = Status

The resulting type after applying the - operator.
source§

impl SubAssign for Status

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for Status

source§

impl Eq for Status

source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for Status

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for Status

source§

impl Eq for Status

source§

impl StructuralPartialEq for Status

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.StatusEntry.html b/git2/struct.StatusEntry.html index bae9de72e..f606908af 100644 --- a/git2/struct.StatusEntry.html +++ b/git2/struct.StatusEntry.html @@ -1,4 +1,4 @@ -StatusEntry in git2 - Rust +StatusEntry in git2 - Rust

Struct git2::StatusEntry

source ·
pub struct StatusEntry<'statuses> { /* private fields */ }
Expand description

A structure representing an entry in the Statuses structure.

Instances are created through the .iter() method or the .get() method.

Implementations§

source§

impl<'statuses> StatusEntry<'statuses>

source

pub fn path_bytes(&self) -> &[u8]

Access the bytes for this entry’s corresponding pathname

diff --git a/git2/struct.StatusIter.html b/git2/struct.StatusIter.html index edfae15a2..5d359a7fd 100644 --- a/git2/struct.StatusIter.html +++ b/git2/struct.StatusIter.html @@ -1,4 +1,4 @@ -StatusIter in git2 - Rust +StatusIter in git2 - Rust

Struct git2::StatusIter

source ·
pub struct StatusIter<'statuses> { /* private fields */ }
Expand description

An iterator over the statuses in a Statuses instance.

Trait Implementations§

source§

impl<'a> DoubleEndedIterator for StatusIter<'a>

source§

fn next_back(&mut self) -> Option<StatusEntry<'a>>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where Self: Sized, diff --git a/git2/struct.StatusOptions.html b/git2/struct.StatusOptions.html index bfb3d2048..fb48e129a 100644 --- a/git2/struct.StatusOptions.html +++ b/git2/struct.StatusOptions.html @@ -1,4 +1,4 @@ -StatusOptions in git2 - Rust +StatusOptions in git2 - Rust

Struct git2::StatusOptions

source ·
pub struct StatusOptions { /* private fields */ }
Expand description

Options that can be provided to repo.statuses() to control how the status information is gathered.

Implementations§

source§

impl StatusOptions

source

pub fn new() -> StatusOptions

Creates a new blank set of status options.

diff --git a/git2/struct.Statuses.html b/git2/struct.Statuses.html index 83d516690..f43eed2a1 100644 --- a/git2/struct.Statuses.html +++ b/git2/struct.Statuses.html @@ -1,4 +1,4 @@ -Statuses in git2 - Rust +Statuses in git2 - Rust

Struct git2::Statuses

source ·
pub struct Statuses<'repo> { /* private fields */ }
Expand description

A container for a list of status information about a repository.

Each instance appears as if it were a collection, having a length and allowing indexing, as well as providing an iterator.

diff --git a/git2/struct.Submodule.html b/git2/struct.Submodule.html index 1760db82a..aacd7df27 100644 --- a/git2/struct.Submodule.html +++ b/git2/struct.Submodule.html @@ -1,4 +1,4 @@ -Submodule in git2 - Rust +Submodule in git2 - Rust

Struct git2::Submodule

source ·
pub struct Submodule<'repo> { /* private fields */ }
Expand description

A structure to represent a git submodule

Implementations§

source§

impl<'repo> Submodule<'repo>

source

pub fn branch(&self) -> Option<&str>

Get the submodule’s branch.

Returns None if the branch is not valid utf-8 or if the branch is not diff --git a/git2/struct.SubmoduleStatus.html b/git2/struct.SubmoduleStatus.html index 4e06fc395..30a07f830 100644 --- a/git2/struct.SubmoduleStatus.html +++ b/git2/struct.SubmoduleStatus.html @@ -1,4 +1,4 @@ -SubmoduleStatus in git2 - Rust

+SubmoduleStatus in git2 - Rust

Struct git2::SubmoduleStatus

source ·
pub struct SubmoduleStatus(/* private fields */);
Expand description

Return codes for submodule status.

A combination of these flags will be returned to describe the status of a submodule. Depending on the “ignore” property of the submodule, some of @@ -71,30 +71,30 @@ will be yielded together as a final flags value.

source

pub const fn iter_names(&self) -> IterNames<SubmoduleStatus>

Yield a set of contained named flags values.

This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

-
source§

impl SubmoduleStatus

source

pub fn is_in_head(&self) -> bool

source

pub fn is_in_index(&self) -> bool

source

pub fn is_in_config(&self) -> bool

source

pub fn is_in_wd(&self) -> bool

source

pub fn is_index_added(&self) -> bool

source

pub fn is_index_deleted(&self) -> bool

source

pub fn is_index_modified(&self) -> bool

source

pub fn is_wd_uninitialized(&self) -> bool

source

pub fn is_wd_added(&self) -> bool

source

pub fn is_wd_deleted(&self) -> bool

source

pub fn is_wd_modified(&self) -> bool

source

pub fn is_wd_wd_modified(&self) -> bool

source

pub fn is_wd_untracked(&self) -> bool

Trait Implementations§

source§

impl Binary for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for SubmoduleStatus

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

-
§

type Output = SubmoduleStatus

The resulting type after applying the & operator.
source§

impl BitAndAssign for SubmoduleStatus

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

+
source§

impl SubmoduleStatus

source

pub fn is_in_head(&self) -> bool

source

pub fn is_in_index(&self) -> bool

source

pub fn is_in_config(&self) -> bool

source

pub fn is_in_wd(&self) -> bool

source

pub fn is_index_added(&self) -> bool

source

pub fn is_index_deleted(&self) -> bool

source

pub fn is_index_modified(&self) -> bool

source

pub fn is_wd_uninitialized(&self) -> bool

source

pub fn is_wd_added(&self) -> bool

source

pub fn is_wd_deleted(&self) -> bool

source

pub fn is_wd_modified(&self) -> bool

source

pub fn is_wd_wd_modified(&self) -> bool

source

pub fn is_wd_untracked(&self) -> bool

Trait Implementations§

source§

impl Binary for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl BitAnd for SubmoduleStatus

source§

fn bitand(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.

+
§

type Output = SubmoduleStatus

The resulting type after applying the & operator.
source§

impl BitAndAssign for SubmoduleStatus

source§

fn bitand_assign(&mut self, other: Self)

The bitwise and (&) of the bits in two flags values.

source§

impl BitOr for SubmoduleStatus

source§

fn bitor(self, other: SubmoduleStatus) -> Self

The bitwise or (|) of the bits in two flags values.

-
§

type Output = SubmoduleStatus

The resulting type after applying the | operator.
source§

impl BitOrAssign for SubmoduleStatus

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

+
§

type Output = SubmoduleStatus

The resulting type after applying the | operator.
source§

impl BitOrAssign for SubmoduleStatus

source§

fn bitor_assign(&mut self, other: Self)

The bitwise or (|) of the bits in two flags values.

source§

impl BitXor for SubmoduleStatus

source§

fn bitxor(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.

-
§

type Output = SubmoduleStatus

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for SubmoduleStatus

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

-
source§

impl Clone for SubmoduleStatus

source§

fn clone(&self) -> SubmoduleStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<SubmoduleStatus> for SubmoduleStatus

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

-
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for SubmoduleStatus

source§

const FLAGS: &'static [Flag<SubmoduleStatus>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> SubmoduleStatus

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where - Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where - Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where - Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where - Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where - Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where - Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<SubmoduleStatus> for SubmoduleStatus

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

-
source§

impl IntoIterator for SubmoduleStatus

§

type Item = SubmoduleStatus

The type of the elements being iterated over.
§

type IntoIter = Iter<SubmoduleStatus>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for SubmoduleStatus

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

-
§

type Output = SubmoduleStatus

The resulting type after applying the ! operator.
source§

impl Octal for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for SubmoduleStatus

source§

fn eq(&self, other: &SubmoduleStatus) -> bool

This method tests for self and other values to be equal, and is used +
§

type Output = SubmoduleStatus

The resulting type after applying the ^ operator.
source§

impl BitXorAssign for SubmoduleStatus

source§

fn bitxor_assign(&mut self, other: Self)

The bitwise exclusive-or (^) of the bits in two flags values.

+
source§

impl Clone for SubmoduleStatus

source§

fn clone(&self) -> SubmoduleStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Extend<SubmoduleStatus> for SubmoduleStatus

source§

fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)

The bitwise or (|) of the bits in each flags value.

+
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl Flags for SubmoduleStatus

source§

const FLAGS: &'static [Flag<SubmoduleStatus>] = _

The set of defined flags.
§

type Bits = u32

The underlying bits type.
source§

fn bits(&self) -> u32

Get the underlying bits value. Read more
source§

fn from_bits_retain(bits: u32) -> SubmoduleStatus

Convert from a bits value exactly.
source§

fn empty() -> Self

Get a flags value with all bits unset.
source§

fn all() -> Self

Get a flags value with all known bits set.
source§

fn from_bits(bits: Self::Bits) -> Option<Self>

Convert from a bits value. Read more
source§

fn from_bits_truncate(bits: Self::Bits) -> Self

Convert from a bits value, unsetting any unknown bits.
source§

fn from_name(name: &str) -> Option<Self>

Get a flags value with the bits of a flag with the given name set. Read more
source§

fn iter(&self) -> Iter<Self>

Yield a set of contained flags values. Read more
source§

fn iter_names(&self) -> IterNames<Self>

Yield a set of contained named flags values. Read more
source§

fn is_empty(&self) -> bool

Whether all bits in this flags value are unset.
source§

fn is_all(&self) -> bool

Whether all known bits in this flags value are set.
source§

fn intersects(&self, other: Self) -> bool
where + Self: Sized,

Whether any set bits in a source flags value are also set in a target flags value.
source§

fn contains(&self, other: Self) -> bool
where + Self: Sized,

Whether all set bits in a source flags value are also set in a target flags value.
source§

fn insert(&mut self, other: Self)
where + Self: Sized,

The bitwise or (|) of the bits in two flags values.
source§

fn remove(&mut self, other: Self)
where + Self: Sized,

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn toggle(&mut self, other: Self)
where + Self: Sized,

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn set(&mut self, other: Self, value: bool)
where + Self: Sized,

Call Flags::insert when value is true or Flags::remove when value is false.
source§

fn intersection(self, other: Self) -> Self

The bitwise and (&) of the bits in two flags values.
source§

fn union(self, other: Self) -> Self

The bitwise or (|) of the bits in two flags values.
source§

fn difference(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!). Read more
source§

fn symmetric_difference(self, other: Self) -> Self

The bitwise exclusive-or (^) of the bits in two flags values.
source§

fn complement(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.
source§

impl FromIterator<SubmoduleStatus> for SubmoduleStatus

source§

fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

The bitwise or (|) of the bits in each flags value.

+
source§

impl IntoIterator for SubmoduleStatus

§

type Item = SubmoduleStatus

The type of the elements being iterated over.
§

type IntoIter = Iter<SubmoduleStatus>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl LowerHex for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Not for SubmoduleStatus

source§

fn not(self) -> Self

The bitwise negation (!) of the bits in a flags value, truncating the result.

+
§

type Output = SubmoduleStatus

The resulting type after applying the ! operator.
source§

impl Octal for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl PartialEq for SubmoduleStatus

source§

fn eq(&self, other: &SubmoduleStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PublicFlags for SubmoduleStatus

§

type Primitive = u32

The type of the underlying storage.
§

type Internal = InternalBitFlags

The type of the internal field on the generated flags type.
source§

impl Sub for SubmoduleStatus

source§

fn sub(self, other: Self) -> Self

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
§

type Output = SubmoduleStatus

The resulting type after applying the - operator.
source§

impl SubAssign for SubmoduleStatus

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

+
§

type Output = SubmoduleStatus

The resulting type after applying the - operator.
source§

impl SubAssign for SubmoduleStatus

source§

fn sub_assign(&mut self, other: Self)

The intersection of a source flags value with the complement of a target flags value (&!).

This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

-
source§

impl UpperHex for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for SubmoduleStatus

source§

impl Eq for SubmoduleStatus

source§

impl StructuralPartialEq for SubmoduleStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

source§

impl UpperHex for SubmoduleStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter.
source§

impl Copy for SubmoduleStatus

source§

impl Eq for SubmoduleStatus

source§

impl StructuralPartialEq for SubmoduleStatus

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/git2/struct.SubmoduleUpdateOptions.html b/git2/struct.SubmoduleUpdateOptions.html index ce4670d96..4c12c448a 100644 --- a/git2/struct.SubmoduleUpdateOptions.html +++ b/git2/struct.SubmoduleUpdateOptions.html @@ -1,4 +1,4 @@ -SubmoduleUpdateOptions in git2 - Rust +SubmoduleUpdateOptions in git2 - Rust
pub struct SubmoduleUpdateOptions<'cb> { /* private fields */ }
Expand description

Options to update a submodule.

Implementations§

source§

impl<'cb> SubmoduleUpdateOptions<'cb>

source

pub fn new() -> Self

Return default options.

source

pub fn checkout(&mut self, opts: CheckoutBuilder<'cb>) -> &mut Self

Set checkout options.

diff --git a/git2/struct.Tag.html b/git2/struct.Tag.html index a26876d8f..50a01cb72 100644 --- a/git2/struct.Tag.html +++ b/git2/struct.Tag.html @@ -1,4 +1,4 @@ -Tag in git2 - Rust +Tag in git2 - Rust

Struct git2::Tag

source ·
pub struct Tag<'repo> { /* private fields */ }
Expand description

A structure to represent a git tag

Implementations§

source§

impl<'repo> Tag<'repo>

source

pub fn is_valid_name(tag_name: &str) -> bool

Determine whether a tag name is valid, meaning that (when prefixed with refs/tags/) that it is a valid reference name, and that any additional tag name restrictions are imposed diff --git a/git2/struct.Time.html b/git2/struct.Time.html index 4e7e2b6e5..8a584ee9b 100644 --- a/git2/struct.Time.html +++ b/git2/struct.Time.html @@ -1,4 +1,4 @@ -Time in git2 - Rust

+Time in git2 - Rust

Struct git2::Time

source ·
pub struct Time { /* private fields */ }
Expand description

Time in a signature

Implementations§

source§

impl Time

source

pub fn new(time: i64, offset: i32) -> Time

Creates a new time structure from its components.

source

pub fn seconds(&self) -> i64

Return the time, in seconds, from epoch

diff --git a/git2/struct.Transaction.html b/git2/struct.Transaction.html index cf54ff146..5ffed65b8 100644 --- a/git2/struct.Transaction.html +++ b/git2/struct.Transaction.html @@ -1,4 +1,4 @@ -Transaction in git2 - Rust +Transaction in git2 - Rust

Struct git2::Transaction

source ·
pub struct Transaction<'repo> { /* private fields */ }
Expand description

A structure representing a transactional update of a repository’s references.

Transactions work by locking loose refs for as long as the Transaction is held, and committing all changes to disk when Transaction::commit is diff --git a/git2/struct.Tree.html b/git2/struct.Tree.html index b2b318990..875e0096d 100644 --- a/git2/struct.Tree.html +++ b/git2/struct.Tree.html @@ -1,4 +1,4 @@ -Tree in git2 - Rust

+Tree in git2 - Rust

Struct git2::Tree

source ·
pub struct Tree<'repo> { /* private fields */ }
Expand description

A structure to represent a git tree

Implementations§

source§

impl<'repo> Tree<'repo>

source

pub fn id(&self) -> Oid

Get the id (SHA1) of a repository object

source

pub fn len(&self) -> usize

Get the number of entries listed in this tree.

diff --git a/git2/struct.TreeBuilder.html b/git2/struct.TreeBuilder.html index 77653afeb..83fa650ce 100644 --- a/git2/struct.TreeBuilder.html +++ b/git2/struct.TreeBuilder.html @@ -1,4 +1,4 @@ -TreeBuilder in git2 - Rust +TreeBuilder in git2 - Rust

Struct git2::TreeBuilder

source ·
pub struct TreeBuilder<'repo> { /* private fields */ }
Expand description

Constructor for in-memory trees (low-level)

You probably want to use build::TreeUpdateBuilder instead.

This is the more raw of the two tree update facilities. It diff --git a/git2/struct.TreeEntry.html b/git2/struct.TreeEntry.html index 03ff1da61..80dbfe522 100644 --- a/git2/struct.TreeEntry.html +++ b/git2/struct.TreeEntry.html @@ -1,4 +1,4 @@ -TreeEntry in git2 - Rust

+TreeEntry in git2 - Rust

Struct git2::TreeEntry

source ·
pub struct TreeEntry<'tree> { /* private fields */ }
Expand description

A structure representing an entry inside of a tree. An entry is borrowed from a tree.

Implementations§

source§

impl<'tree> TreeEntry<'tree>

source

pub fn id(&self) -> Oid

Get the id of the object pointed by the entry

diff --git a/git2/struct.TreeIter.html b/git2/struct.TreeIter.html index 6631c0ae2..3652b6deb 100644 --- a/git2/struct.TreeIter.html +++ b/git2/struct.TreeIter.html @@ -1,4 +1,4 @@ -TreeIter in git2 - Rust +TreeIter in git2 - Rust

Struct git2::TreeIter

source ·
pub struct TreeIter<'tree> { /* private fields */ }
Expand description

An iterator over the entries in a tree.

Trait Implementations§

source§

impl<'tree> DoubleEndedIterator for TreeIter<'tree>

source§

fn next_back(&mut self) -> Option<TreeEntry<'tree>>

Removes and returns an element from the end of the iterator. Read more
source§

fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

🔬This is a nightly-only experimental API. (iter_advance_by)
Advances the iterator from the back by n elements. Read more
1.37.0 · source§

fn nth_back(&mut self, n: usize) -> Option<Self::Item>

Returns the nth element from the end of the iterator. Read more
1.27.0 · source§

fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
where Self: Sized, diff --git a/git2/struct.Version.html b/git2/struct.Version.html index 142bec44a..4f1a54e1c 100644 --- a/git2/struct.Version.html +++ b/git2/struct.Version.html @@ -1,4 +1,4 @@ -Version in git2 - Rust +Version in git2 - Rust

Struct git2::Version

source ·
pub struct Version { /* private fields */ }
Expand description

Version information about libgit2 and the capabilities it supports.

Implementations§

source§

impl Version

source

pub fn get() -> Version

Returns a Version which provides information about libgit2.

source

pub fn libgit2_version(&self) -> (u32, u32, u32)

Returns the version of libgit2.

diff --git a/git2/struct.Worktree.html b/git2/struct.Worktree.html index 001de3809..d333270c7 100644 --- a/git2/struct.Worktree.html +++ b/git2/struct.Worktree.html @@ -1,4 +1,4 @@ -Worktree in git2 - Rust +Worktree in git2 - Rust

Struct git2::Worktree

source ·
pub struct Worktree { /* private fields */ }
Expand description

An owned git worktree

This structure corresponds to a git_worktree in libgit2.

Implementations§

source§

impl Worktree

source

pub fn open_from_repository(repo: &Repository) -> Result<Worktree, Error>

Open a worktree of a the repository

diff --git a/git2/struct.WorktreeAddOptions.html b/git2/struct.WorktreeAddOptions.html index a471074f3..d97f0b5f4 100644 --- a/git2/struct.WorktreeAddOptions.html +++ b/git2/struct.WorktreeAddOptions.html @@ -1,4 +1,4 @@ -WorktreeAddOptions in git2 - Rust +WorktreeAddOptions in git2 - Rust
pub struct WorktreeAddOptions<'a> { /* private fields */ }
Expand description

Options which can be used to configure how a worktree is initialized

Implementations§

source§

impl<'a> WorktreeAddOptions<'a>

source

pub fn new() -> WorktreeAddOptions<'a>

Creates a default set of add options.

By default this will not lock the worktree

diff --git a/git2/struct.WorktreePruneOptions.html b/git2/struct.WorktreePruneOptions.html index 5fa33704a..fda5a6b62 100644 --- a/git2/struct.WorktreePruneOptions.html +++ b/git2/struct.WorktreePruneOptions.html @@ -1,4 +1,4 @@ -WorktreePruneOptions in git2 - Rust +WorktreePruneOptions in git2 - Rust
pub struct WorktreePruneOptions { /* private fields */ }
Expand description

Options to configure how worktree pruning is performed

Implementations§

source§

impl WorktreePruneOptions

source

pub fn new() -> WorktreePruneOptions

Creates a default set of pruning options

By defaults this will prune only worktrees that are no longer valid diff --git a/git2/trait.IntoCString.html b/git2/trait.IntoCString.html index 42585549c..5301e01d7 100644 --- a/git2/trait.IntoCString.html +++ b/git2/trait.IntoCString.html @@ -1,9 +1,9 @@ -IntoCString in git2 - Rust

-

Trait git2::IntoCString

source ·
pub trait IntoCString {
+IntoCString in git2 - Rust
+    

Trait git2::IntoCString

source ·
pub trait IntoCString {
     // Required method
     fn into_c_string(self) -> Result<CString, Error>;
 }
Expand description

A class of types that can be converted to C strings.

These types are represented internally as byte slices and it is quite rare for them to contain an interior 0 byte.

-

Required Methods§

source

fn into_c_string(self) -> Result<CString, Error>

Consume this container, converting it into a CString

-

Implementations on Foreign Types§

source§

impl IntoCString for CString

source§

impl IntoCString for String

source§

impl IntoCString for Vec<u8>

source§

impl IntoCString for OsString

source§

impl IntoCString for PathBuf

source§

impl<'a> IntoCString for &'a str

source§

impl<'a> IntoCString for &'a OsStr

source§

impl<'a> IntoCString for &'a Path

source§

impl<'a> IntoCString for &'a [u8]

source§

impl<'a, T: IntoCString + Clone> IntoCString for &'a T

Implementors§

\ No newline at end of file +

Required Methods§

source

fn into_c_string(self) -> Result<CString, Error>

Consume this container, converting it into a CString

+

Implementations on Foreign Types§

source§

impl IntoCString for CString

source§

impl IntoCString for String

source§

impl IntoCString for Vec<u8>

source§

impl IntoCString for OsString

source§

impl IntoCString for PathBuf

source§

impl<'a> IntoCString for &'a str

source§

impl<'a> IntoCString for &'a OsStr

source§

impl<'a> IntoCString for &'a Path

source§

impl<'a> IntoCString for &'a [u8]

source§

impl<'a, T: IntoCString + Clone> IntoCString for &'a T

Implementors§

\ No newline at end of file diff --git a/git2/transport/enum.Service.html b/git2/transport/enum.Service.html index b0eabcfdd..f83cdb1d5 100644 --- a/git2/transport/enum.Service.html +++ b/git2/transport/enum.Service.html @@ -1,4 +1,4 @@ -Service in git2::transport - Rust +Service in git2::transport - Rust

Enum git2::transport::Service

source ·
pub enum Service {
     UploadPackLs,
     UploadPack,
diff --git a/git2/transport/fn.register.html b/git2/transport/fn.register.html
index 5cf023c29..70d43cc39 100644
--- a/git2/transport/fn.register.html
+++ b/git2/transport/fn.register.html
@@ -1,4 +1,4 @@
-register in git2::transport - Rust
+register in git2::transport - Rust
     

Function git2::transport::register

source ·
pub unsafe fn register<F>(prefix: &str, factory: F) -> Result<(), Error>
where F: Fn(&Remote<'_>) -> Result<Transport, Error> + Send + Sync + 'static,
Expand description

Add a custom transport definition, to be used in addition to the built-in set of transports that come with libgit2.

diff --git a/git2/transport/index.html b/git2/transport/index.html index df080585a..205209303 100644 --- a/git2/transport/index.html +++ b/git2/transport/index.html @@ -1,4 +1,4 @@ -git2::transport - Rust +git2::transport - Rust

Module git2::transport

source ·
Expand description

Interfaces for adding custom transports to libgit2

Structs§

  • A transport is a structure which knows how to transfer data to and from a remote.

Enums§

  • Actions that a smart transport can ask a subtransport to perform

Traits§

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsLowerCamelCase.html b/heck/struct.AsLowerCamelCase.html index 2a0a20c3c..7925659f0 100644 --- a/heck/struct.AsLowerCamelCase.html +++ b/heck/struct.AsLowerCamelCase.html @@ -1,19 +1,19 @@ -AsLowerCamelCase in heck - Rust

-

Struct heck::AsLowerCamelCase

source ·
pub struct AsLowerCamelCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a lower camel case conversion in fmt::Display.

+AsLowerCamelCase in heck - Rust +

Struct heck::AsLowerCamelCase

source ·
pub struct AsLowerCamelCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a lower camel case conversion in fmt::Display.

§Example:

use heck::AsLowerCamelCase;
 
 let sentence = "It is we who built these palaces and cities.";
 assert_eq!(format!("{}", AsLowerCamelCase(sentence)), "itIsWeWhoBuiltThesePalacesAndCities");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsLowerCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsLowerCamelCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsLowerCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsLowerCamelCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsLowerCamelCase<T>
where T: Send,

§

impl<T> Sync for AsLowerCamelCase<T>
where T: Sync,

§

impl<T> Unpin for AsLowerCamelCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsLowerCamelCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsPascalCase.html b/heck/struct.AsPascalCase.html index 54ffe0a5b..7f80f5831 100644 --- a/heck/struct.AsPascalCase.html +++ b/heck/struct.AsPascalCase.html @@ -1,19 +1,19 @@ -AsPascalCase in heck - Rust

-

Struct heck::AsPascalCase

source ·
pub struct AsPascalCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a upper camel case conversion in fmt::Display.

+AsPascalCase in heck - Rust +

Struct heck::AsPascalCase

source ·
pub struct AsPascalCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a upper camel case conversion in fmt::Display.

§Example:

use heck::AsUpperCamelCase;
 
 let sentence = "We are not in the least afraid of ruins.";
 assert_eq!(format!("{}", AsUpperCamelCase(sentence)), "WeAreNotInTheLeastAfraidOfRuins");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsUpperCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsUpperCamelCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsUpperCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsUpperCamelCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsUpperCamelCase<T>
where T: Send,

§

impl<T> Sync for AsUpperCamelCase<T>
where T: Sync,

§

impl<T> Unpin for AsUpperCamelCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsUpperCamelCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsShoutyKebabCase.html b/heck/struct.AsShoutyKebabCase.html index 99759b107..27b74ab49 100644 --- a/heck/struct.AsShoutyKebabCase.html +++ b/heck/struct.AsShoutyKebabCase.html @@ -1,19 +1,19 @@ -AsShoutyKebabCase in heck - Rust

-

Struct heck::AsShoutyKebabCase

source ·
pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a kebab case conversion in fmt::Display.

+AsShoutyKebabCase in heck - Rust +

Struct heck::AsShoutyKebabCase

source ·
pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a kebab case conversion in fmt::Display.

§Example:

use heck::AsShoutyKebabCase;
 
 let sentence = "We are going to inherit the earth.";
 assert_eq!(format!("{}", AsShoutyKebabCase(sentence)), "WE-ARE-GOING-TO-INHERIT-THE-EARTH");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutyKebabCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutyKebabCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutyKebabCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutyKebabCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsShoutyKebabCase<T>
where T: Send,

§

impl<T> Sync for AsShoutyKebabCase<T>
where T: Sync,

§

impl<T> Unpin for AsShoutyKebabCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsShoutyKebabCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsShoutySnakeCase.html b/heck/struct.AsShoutySnakeCase.html index ae852795e..007104945 100644 --- a/heck/struct.AsShoutySnakeCase.html +++ b/heck/struct.AsShoutySnakeCase.html @@ -1,19 +1,19 @@ -AsShoutySnakeCase in heck - Rust

-

Struct heck::AsShoutySnakeCase

source ·
pub struct AsShoutySnakeCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a shouty snake case conversion in fmt::Display.

+AsShoutySnakeCase in heck - Rust +

Struct heck::AsShoutySnakeCase

source ·
pub struct AsShoutySnakeCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a shouty snake case conversion in fmt::Display.

§Example:

use heck::AsShoutySnakeCase;
 
 let sentence = "That world is growing in this minute.";
 assert_eq!(format!("{}", AsShoutySnakeCase(sentence)), "THAT_WORLD_IS_GROWING_IN_THIS_MINUTE");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutySnakeCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutySnakeCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsShoutySnakeCase<T>
where T: Send,

§

impl<T> Sync for AsShoutySnakeCase<T>
where T: Sync,

§

impl<T> Unpin for AsShoutySnakeCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsShoutySnakeCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsShoutySnekCase.html b/heck/struct.AsShoutySnekCase.html index 424235dbe..768001f68 100644 --- a/heck/struct.AsShoutySnekCase.html +++ b/heck/struct.AsShoutySnekCase.html @@ -1,19 +1,19 @@ -AsShoutySnekCase in heck - Rust

-

Struct heck::AsShoutySnekCase

source ·
pub struct AsShoutySnekCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a shouty snake case conversion in fmt::Display.

+AsShoutySnekCase in heck - Rust +

Struct heck::AsShoutySnekCase

source ·
pub struct AsShoutySnekCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a shouty snake case conversion in fmt::Display.

§Example:

use heck::AsShoutySnakeCase;
 
 let sentence = "That world is growing in this minute.";
 assert_eq!(format!("{}", AsShoutySnakeCase(sentence)), "THAT_WORLD_IS_GROWING_IN_THIS_MINUTE");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutySnakeCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsShoutySnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsShoutySnakeCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsShoutySnakeCase<T>
where T: Send,

§

impl<T> Sync for AsShoutySnakeCase<T>
where T: Sync,

§

impl<T> Unpin for AsShoutySnakeCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsShoutySnakeCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsSnakeCase.html b/heck/struct.AsSnakeCase.html index 6a16aa671..3d1ffc447 100644 --- a/heck/struct.AsSnakeCase.html +++ b/heck/struct.AsSnakeCase.html @@ -1,19 +1,19 @@ -AsSnakeCase in heck - Rust

-

Struct heck::AsSnakeCase

source ·
pub struct AsSnakeCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a snake case conversion in fmt::Display.

+AsSnakeCase in heck - Rust +

Struct heck::AsSnakeCase

source ·
pub struct AsSnakeCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a snake case conversion in fmt::Display.

§Example:

use heck::AsSnakeCase;
 
 let sentence = "We carry a new world here, in our hearts.";
 assert_eq!(format!("{}", AsSnakeCase(sentence)), "we_carry_a_new_world_here_in_our_hearts");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsSnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsSnakeCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsSnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsSnakeCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsSnakeCase<T>
where T: Send,

§

impl<T> Sync for AsSnakeCase<T>
where T: Sync,

§

impl<T> Unpin for AsSnakeCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsSnakeCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsSnekCase.html b/heck/struct.AsSnekCase.html index 88fc7911e..0dd428f7b 100644 --- a/heck/struct.AsSnekCase.html +++ b/heck/struct.AsSnekCase.html @@ -1,19 +1,19 @@ -AsSnekCase in heck - Rust

-

Struct heck::AsSnekCase

source ·
pub struct AsSnekCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a snake case conversion in fmt::Display.

+AsSnekCase in heck - Rust +

Struct heck::AsSnekCase

source ·
pub struct AsSnekCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a snake case conversion in fmt::Display.

§Example:

use heck::AsSnakeCase;
 
 let sentence = "We carry a new world here, in our hearts.";
 assert_eq!(format!("{}", AsSnakeCase(sentence)), "we_carry_a_new_world_here_in_our_hearts");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsSnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsSnakeCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsSnakeCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsSnakeCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsSnakeCase<T>
where T: Send,

§

impl<T> Sync for AsSnakeCase<T>
where T: Sync,

§

impl<T> Unpin for AsSnakeCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsSnakeCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsTitleCase.html b/heck/struct.AsTitleCase.html index 029a4a74e..66042de7e 100644 --- a/heck/struct.AsTitleCase.html +++ b/heck/struct.AsTitleCase.html @@ -1,19 +1,19 @@ -AsTitleCase in heck - Rust

-

Struct heck::AsTitleCase

source ·
pub struct AsTitleCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a title case conversion in fmt::Display.

+AsTitleCase in heck - Rust +

Struct heck::AsTitleCase

source ·
pub struct AsTitleCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a title case conversion in fmt::Display.

§Example:

use heck::AsTitleCase;
 
 let sentence = "We have always lived in slums and holes in the wall.";
 assert_eq!(format!("{}", AsTitleCase(sentence)), "We Have Always Lived In Slums And Holes In The Wall");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsTitleCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsTitleCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsTitleCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsTitleCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsTitleCase<T>
where T: Send,

§

impl<T> Sync for AsTitleCase<T>
where T: Sync,

§

impl<T> Unpin for AsTitleCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsTitleCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsTrainCase.html b/heck/struct.AsTrainCase.html index 02ffe05ef..8462e39c3 100644 --- a/heck/struct.AsTrainCase.html +++ b/heck/struct.AsTrainCase.html @@ -1,19 +1,19 @@ -AsTrainCase in heck - Rust

-

Struct heck::AsTrainCase

source ·
pub struct AsTrainCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a train case conversion in fmt::Display.

+AsTrainCase in heck - Rust +

Struct heck::AsTrainCase

source ·
pub struct AsTrainCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a train case conversion in fmt::Display.

§Example:

use heck::AsTrainCase;
 
 let sentence = "We are going to inherit the earth.";
 assert_eq!(format!("{}", AsTrainCase(sentence)), "We-Are-Going-To-Inherit-The-Earth");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsTrainCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsTrainCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsTrainCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsTrainCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsTrainCase<T>
where T: Send,

§

impl<T> Sync for AsTrainCase<T>
where T: Sync,

§

impl<T> Unpin for AsTrainCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsTrainCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/struct.AsUpperCamelCase.html b/heck/struct.AsUpperCamelCase.html index dfe696189..142031648 100644 --- a/heck/struct.AsUpperCamelCase.html +++ b/heck/struct.AsUpperCamelCase.html @@ -1,19 +1,19 @@ -AsUpperCamelCase in heck - Rust

-

Struct heck::AsUpperCamelCase

source ·
pub struct AsUpperCamelCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a upper camel case conversion in fmt::Display.

+AsUpperCamelCase in heck - Rust +

Struct heck::AsUpperCamelCase

source ·
pub struct AsUpperCamelCase<T: AsRef<str>>(pub T);
Expand description

This wrapper performs a upper camel case conversion in fmt::Display.

§Example:

use heck::AsUpperCamelCase;
 
 let sentence = "We are not in the least afraid of ruins.";
 assert_eq!(format!("{}", AsUpperCamelCase(sentence)), "WeAreNotInTheLeastAfraidOfRuins");
-

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsUpperCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsUpperCamelCase<T>
where +

Tuple Fields§

§0: T

Trait Implementations§

source§

impl<T: AsRef<str>> Display for AsUpperCamelCase<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for AsUpperCamelCase<T>
where T: RefUnwindSafe,

§

impl<T> Send for AsUpperCamelCase<T>
where T: Send,

§

impl<T> Sync for AsUpperCamelCase<T>
where T: Sync,

§

impl<T> Unpin for AsUpperCamelCase<T>
where T: Unpin,

§

impl<T> UnwindSafe for AsUpperCamelCase<T>
where T: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ T: ?Sized,
source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of diff --git a/heck/trait.ToKebabCase.html b/heck/trait.ToKebabCase.html index 731187db9..746f93d2b 100644 --- a/heck/trait.ToKebabCase.html +++ b/heck/trait.ToKebabCase.html @@ -1,5 +1,5 @@ -ToKebabCase in heck - Rust

-

Trait heck::ToKebabCase

source ·
pub trait ToKebabCase: ToOwned {
+ToKebabCase in heck - Rust
+    

Trait heck::ToKebabCase

source ·
pub trait ToKebabCase: ToOwned {
     // Required method
     fn to_kebab_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a kebab case conversion.

@@ -9,5 +9,5 @@ let sentence = "We are going to inherit the earth."; assert_eq!(sentence.to_kebab_case(), "we-are-going-to-inherit-the-earth");
-

Required Methods§

source

fn to_kebab_case(&self) -> Self::Owned

Convert this type to kebab case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToKebabCase for str

source§

fn to_kebab_case(&self) -> Self::Owned

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_kebab_case(&self) -> Self::Owned

Convert this type to kebab case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToKebabCase for str

source§

fn to_kebab_case(&self) -> Self::Owned

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToLowerCamelCase.html b/heck/trait.ToLowerCamelCase.html index fb5884573..c6ff821cb 100644 --- a/heck/trait.ToLowerCamelCase.html +++ b/heck/trait.ToLowerCamelCase.html @@ -1,5 +1,5 @@ -ToLowerCamelCase in heck - Rust -
pub trait ToLowerCamelCase: ToOwned {
+ToLowerCamelCase in heck - Rust
+    
pub trait ToLowerCamelCase: ToOwned {
     // Required method
     fn to_lower_camel_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a lower camel case conversion.

@@ -10,5 +10,5 @@ excepting the first word.

let sentence = "It is we who built these palaces and cities."; assert_eq!(sentence.to_lower_camel_case(), "itIsWeWhoBuiltThesePalacesAndCities");
-

Required Methods§

source

fn to_lower_camel_case(&self) -> Self::Owned

Convert this type to lower camel case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToLowerCamelCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_lower_camel_case(&self) -> Self::Owned

Convert this type to lower camel case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToLowerCamelCase for str

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToPascalCase.html b/heck/trait.ToPascalCase.html index ee368a3d9..5620ccdaa 100644 --- a/heck/trait.ToPascalCase.html +++ b/heck/trait.ToPascalCase.html @@ -1,8 +1,8 @@ -ToPascalCase in heck - Rust -

Trait heck::ToPascalCase

source ·
pub trait ToPascalCase: ToOwned {
+ToPascalCase in heck - Rust
+    

Trait heck::ToPascalCase

source ·
pub trait ToPascalCase: ToOwned {
     // Required method
     fn to_pascal_case(&self) -> Self::Owned;
-}
Expand description

ToPascalCase is an alias for ToUpperCamelCase. See ToUpperCamelCase for more +}

Expand description

ToPascalCase is an alias for ToUpperCamelCase. See ToUpperCamelCase for more documentation.

-

Required Methods§

source

fn to_pascal_case(&self) -> Self::Owned

Convert this type to upper camel case.

-

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_pascal_case(&self) -> Self::Owned

Convert this type to upper camel case.

+

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToShoutyKebabCase.html b/heck/trait.ToShoutyKebabCase.html index fe6209a4a..1f7732d86 100644 --- a/heck/trait.ToShoutyKebabCase.html +++ b/heck/trait.ToShoutyKebabCase.html @@ -1,5 +1,5 @@ -ToShoutyKebabCase in heck - Rust -
pub trait ToShoutyKebabCase: ToOwned {
+ToShoutyKebabCase in heck - Rust
+    
pub trait ToShoutyKebabCase: ToOwned {
     // Required method
     fn to_shouty_kebab_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a shouty kebab case conversion.

@@ -10,5 +10,5 @@ words are in uppercase.

let sentence = "We are going to inherit the earth."; assert_eq!(sentence.to_shouty_kebab_case(), "WE-ARE-GOING-TO-INHERIT-THE-EARTH");
-

Required Methods§

source

fn to_shouty_kebab_case(&self) -> Self::Owned

Convert this type to shouty kebab case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToShoutyKebabCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_shouty_kebab_case(&self) -> Self::Owned

Convert this type to shouty kebab case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToShoutyKebabCase for str

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToShoutySnakeCase.html b/heck/trait.ToShoutySnakeCase.html index 351e2b41e..e0b156bdb 100644 --- a/heck/trait.ToShoutySnakeCase.html +++ b/heck/trait.ToShoutySnakeCase.html @@ -1,5 +1,5 @@ -ToShoutySnakeCase in heck - Rust -
pub trait ToShoutySnakeCase: ToOwned {
+ToShoutySnakeCase in heck - Rust
+    
pub trait ToShoutySnakeCase: ToOwned {
     // Required method
     fn to_shouty_snake_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a shouty snake case conversion.

@@ -10,5 +10,5 @@ words are in uppercase.

let sentence = "That world is growing in this minute."; assert_eq!(sentence.to_shouty_snake_case(), "THAT_WORLD_IS_GROWING_IN_THIS_MINUTE");
-

Required Methods§

source

fn to_shouty_snake_case(&self) -> Self::Owned

Convert this type to shouty snake case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToShoutySnakeCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_shouty_snake_case(&self) -> Self::Owned

Convert this type to shouty snake case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToShoutySnakeCase for str

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToShoutySnekCase.html b/heck/trait.ToShoutySnekCase.html index 0d995a17b..d227870a8 100644 --- a/heck/trait.ToShoutySnekCase.html +++ b/heck/trait.ToShoutySnekCase.html @@ -1,8 +1,8 @@ -ToShoutySnekCase in heck - Rust -
pub trait ToShoutySnekCase: ToOwned {
+ToShoutySnekCase in heck - Rust
+    
pub trait ToShoutySnekCase: ToOwned {
     // Required method
     fn TO_SHOUTY_SNEK_CASE(&self) -> Self::Owned;
-}
Expand description

Oh heck, ToShoutySnekCase is an alias for ToShoutySnakeCase. See +}

Expand description

Oh heck, ToShoutySnekCase is an alias for ToShoutySnakeCase. See ToShoutySnakeCase for more documentation.

-

Required Methods§

source

fn TO_SHOUTY_SNEK_CASE(&self) -> Self::Owned

CONVERT THIS TYPE TO SNEK CASE.

-

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

source

fn TO_SHOUTY_SNEK_CASE(&self) -> Self::Owned

CONVERT THIS TYPE TO SNEK CASE.

+

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: ?Sized + ToShoutySnakeCase> ToShoutySnekCase for T

\ No newline at end of file diff --git a/heck/trait.ToSnakeCase.html b/heck/trait.ToSnakeCase.html index fe351637d..f6eea587e 100644 --- a/heck/trait.ToSnakeCase.html +++ b/heck/trait.ToSnakeCase.html @@ -1,5 +1,5 @@ -ToSnakeCase in heck - Rust -

Trait heck::ToSnakeCase

source ·
pub trait ToSnakeCase: ToOwned {
+ToSnakeCase in heck - Rust
+    

Trait heck::ToSnakeCase

source ·
pub trait ToSnakeCase: ToOwned {
     // Required method
     fn to_snake_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a snake case conversion.

@@ -9,5 +9,5 @@ let sentence = "We carry a new world here, in our hearts."; assert_eq!(sentence.to_snake_case(), "we_carry_a_new_world_here_in_our_hearts");
-

Required Methods§

source

fn to_snake_case(&self) -> Self::Owned

Convert this type to snake case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToSnakeCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_snake_case(&self) -> Self::Owned

Convert this type to snake case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToSnakeCase for str

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToSnekCase.html b/heck/trait.ToSnekCase.html index a8ddd0c6b..78a210a13 100644 --- a/heck/trait.ToSnekCase.html +++ b/heck/trait.ToSnekCase.html @@ -1,8 +1,8 @@ -ToSnekCase in heck - Rust -

Trait heck::ToSnekCase

source ·
pub trait ToSnekCase: ToOwned {
+ToSnekCase in heck - Rust
+    

Trait heck::ToSnekCase

source ·
pub trait ToSnekCase: ToOwned {
     // Required method
     fn to_snek_case(&self) -> Self::Owned;
-}
Expand description

Oh heck, SnekCase is an alias for ToSnakeCase. See ToSnakeCase for +}

Expand description

Oh heck, SnekCase is an alias for ToSnakeCase. See ToSnakeCase for more documentation.

-

Required Methods§

source

fn to_snek_case(&self) -> Self::Owned

Convert this type to snek case.

-

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_snek_case(&self) -> Self::Owned

Convert this type to snek case.

+

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: ?Sized + ToSnakeCase> ToSnekCase for T

\ No newline at end of file diff --git a/heck/trait.ToTitleCase.html b/heck/trait.ToTitleCase.html index 92d9ae1a3..3f73976f9 100644 --- a/heck/trait.ToTitleCase.html +++ b/heck/trait.ToTitleCase.html @@ -1,5 +1,5 @@ -ToTitleCase in heck - Rust -

Trait heck::ToTitleCase

source ·
pub trait ToTitleCase: ToOwned {
+ToTitleCase in heck - Rust
+    

Trait heck::ToTitleCase

source ·
pub trait ToTitleCase: ToOwned {
     // Required method
     fn to_title_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a title case conversion.

@@ -10,5 +10,5 @@ capitalized.

let sentence = "We have always lived in slums and holes in the wall."; assert_eq!(sentence.to_title_case(), "We Have Always Lived In Slums And Holes In The Wall");
-

Required Methods§

source

fn to_title_case(&self) -> Self::Owned

Convert this type to title case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToTitleCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_title_case(&self) -> Self::Owned

Convert this type to title case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToTitleCase for str

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToTrainCase.html b/heck/trait.ToTrainCase.html index d72702090..6daaebfe8 100644 --- a/heck/trait.ToTrainCase.html +++ b/heck/trait.ToTrainCase.html @@ -1,5 +1,5 @@ -ToTrainCase in heck - Rust -

Trait heck::ToTrainCase

source ·
pub trait ToTrainCase: ToOwned {
+ToTrainCase in heck - Rust
+    

Trait heck::ToTrainCase

source ·
pub trait ToTrainCase: ToOwned {
     // Required method
     fn to_train_case(&self) -> Self::Owned;
 }
Expand description

This trait defines a train case conversion.

@@ -10,5 +10,5 @@ with Capital Letters.

let sentence = "We are going to inherit the earth."; assert_eq!(sentence.to_train_case(), "We-Are-Going-To-Inherit-The-Earth");
-

Required Methods§

source

fn to_train_case(&self) -> Self::Owned

Convert this type to Train-Case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToTrainCase for str

source§

fn to_train_case(&self) -> Self::Owned

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_train_case(&self) -> Self::Owned

Convert this type to Train-Case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToTrainCase for str

source§

fn to_train_case(&self) -> Self::Owned

Implementors§

\ No newline at end of file diff --git a/heck/trait.ToUpperCamelCase.html b/heck/trait.ToUpperCamelCase.html index dde806854..4db255f14 100644 --- a/heck/trait.ToUpperCamelCase.html +++ b/heck/trait.ToUpperCamelCase.html @@ -1,5 +1,5 @@ -ToUpperCamelCase in heck - Rust -
pub trait ToUpperCamelCase: ToOwned {
+ToUpperCamelCase in heck - Rust
+    
pub trait ToUpperCamelCase: ToOwned {
     // Required method
     fn to_upper_camel_case(&self) -> Self::Owned;
 }
Expand description

This trait defines an upper camel case conversion.

@@ -10,5 +10,5 @@ including the first word.

let sentence = "We are not in the least afraid of ruins."; assert_eq!(sentence.to_upper_camel_case(), "WeAreNotInTheLeastAfraidOfRuins");
-

Required Methods§

source

fn to_upper_camel_case(&self) -> Self::Owned

Convert this type to upper camel case.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToUpperCamelCase for str

Implementors§

\ No newline at end of file +

Required Methods§

source

fn to_upper_camel_case(&self) -> Self::Owned

Convert this type to upper camel case.

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToUpperCamelCase for str

Implementors§

\ No newline at end of file diff --git a/indexmap/all.html b/indexmap/all.html index 910ab19ee..b47f7dd0f 100644 --- a/indexmap/all.html +++ b/indexmap/all.html @@ -1,2 +1,2 @@ -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/indexmap/index.html b/indexmap/index.html index 81291029e..e325c701f 100644 --- a/indexmap/index.html +++ b/indexmap/index.html @@ -1,6 +1,6 @@ -indexmap - Rust