Struct nom_bitvec::BSlice[][src]

#[repr(transparent)]
pub struct BSlice<'a, O: BitOrder, T: BitStore>(pub &'a BitSlice<O, T>);

Tuple Fields

0: &'a BitSlice<O, T>

Trait Implementations

Casts the input type to a byte slice

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Compares self to another value for equality

Compares self to another value for equality independently of the case. Read more

Formats the value using the given formatter. Read more

The current input type is a sequence of that Item type. Read more

The type that will be produced

Create a new Extend of the correct type

Accumulate the input into an accumulator

Returns the byte position of the substring if it is found

Returns true if self contains the token

Returns true if self contains the token

The returned type after indexing.

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

The current input type is a sequence of that Item type. Read more

An iterator over the input type, producing the item and its position for use with Slice. If we’re iterating over &str, the position corresponds to the byte index of the character Read more

An iterator over the input type, producing the item

Returns an iterator over the elements and their byte offsets

Returns an iterator over the elements

Finds the byte position of the element

Get the byte offset from the element’s position in the stream

Calculates the input length, as indicated by its name, and the name of the trait itself Read more

Calculates the input length, as indicated by its name, and the name of the trait itself Read more

Returns a slice of count bytes. panics if count > length

Split the stream at the count byte offset. panics if count > length

The current input type is a sequence of that Item type. Read more

Looks for the first element of the input type for which the condition returns true, and returns the input up to this position. Read more

Looks for the first element of the input type for which the condition returns true and returns the input up to this position. Read more

Looks for the first element of the input type for which the condition returns true, and returns the input up to this position. Read more

Looks for the first element of the input type for which the condition returns true and returns the input up to this position. Read more

Offset between the first byte of self and the first byte of the argument

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Slices self according to the range argument

Slices self according to the range argument

Slices self according to the range argument

Slices self according to the range argument

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts self into T using Into<T>. Read more

Causes self to use its Binary implementation when Debug-formatted.

Causes self to use its Display implementation when Debug-formatted. Read more

Causes self to use its LowerExp implementation when Debug-formatted. Read more

Causes self to use its LowerHex implementation when Debug-formatted. Read more

Causes self to use its Octal implementation when Debug-formatted.

Causes self to use its Pointer implementation when Debug-formatted. Read more

Causes self to use its UpperExp implementation when Debug-formatted. Read more

Causes self to use its UpperHex implementation when Debug-formatted. Read more

Performs the conversion.

Performs the conversion.

Pipes by value. This is generally the method you want to use. Read more

Borrows self and passes that borrow into the pipe function. Read more

Mutably borrows self and passes that borrow into the pipe function. Read more

Borrows self, then passes self.borrow() into the pipe function. Read more

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more

Borrows self, then passes self.as_ref() into the pipe function.

Mutably borrows self, then passes self.as_mut() into the pipe function. Read more

Borrows self, then passes self.deref() into the pipe function.

Mutably borrows self, then passes self.deref_mut() into the pipe function. Read more

Immutable access to a value. Read more

Mutable access to a value. Read more

Immutable access to the Borrow<B> of a value. Read more

Mutable access to the BorrowMut<B> of a value. Read more

Immutable access to the AsRef<R> view of a value. Read more

Mutable access to the AsMut<R> view of a value. Read more

Immutable access to the Deref::Target of a value. Read more

Mutable access to the Deref::Target of a value. Read more

Calls .tap() only in debug builds, and is erased in release builds.

Calls .tap_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow() only in debug builds, and is erased in release builds. Read more

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref() only in debug builds, and is erased in release builds. Read more

Calls .tap_ref_mut() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref() only in debug builds, and is erased in release builds. Read more

Calls .tap_deref_mut() only in debug builds, and is erased in release builds. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Attempts to convert self into T using TryInto<T>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.