#[non_exhaustive]pub struct ToBeSignedCertificate {Show 16 fields
pub id: CertificateId,
pub craca_id: HashedId3,
pub crl_series: CrlSeries,
pub validity_period: ValidityPeriod,
pub region: Option<GeographicRegion>,
pub assurance_level: Option<SubjectAssurance>,
pub app_permissions: Option<SequenceOfPsidSsp>,
pub cert_issue_permissions: Option<SequenceOfPsidGroupPermissions>,
pub cert_request_permissions: Option<SequenceOfPsidGroupPermissions>,
pub can_request_rollover: Option<()>,
pub encryption_key: Option<PublicEncryptionKey>,
pub verify_key_indicator: VerificationKeyIndicator,
pub flags: Option<BitString>,
pub app_extensions: Option<SequenceOfAppExtensions>,
pub cert_issue_extensions: Option<SequenceOfCertIssueExtensions>,
pub cert_request_extension: Option<SequenceOfCertRequestExtensions>,
}Expand description
- @brief The fields in the ToBeSignedCertificate structure have the
- following meaning:
- In other words, for implicit certificates, the value H (CertU) in SEC 4,
- section 3, is for purposes of this standard taken to be H [H
- (canonicalized ToBeSignedCertificate from the subordinate certificate) ||
- H (entirety of issuer Certificate)]. See 5.3.2 for further discussion,
- including material differences between this standard and SEC 4 regarding
- how the hash function output is converted from a bit string to an integer.
- @param id: contains information that is used to identify the certificate
- holder if necessary.
- @param cracaId: identifies the Certificate Revocation Authorization CA
- (CRACA) responsible for certificate revocation lists (CRLs) on which this
- certificate might appear. Use of the cracaId is specified in 5.1.3. The
- HashedId3 is calculated with the whole-certificate hash algorithm,
- determined as described in 6.4.3, applied to the COER-encoded certificate,
- canonicalized as defined in the definition of Certificate.
- @param crlSeries: represents the CRL series relevant to a particular
- Certificate Revocation Authorization CA (CRACA) on which the certificate
- might appear. Use of this field is specified in 5.1.3.
- @param validityPeriod: contains the validity period of the certificate.
- @param region: if present, indicates the validity region of the
- certificate. If it is omitted the validity region is determined as follows:
-
- If the enclosing certificate is self-signed, i.e., the choice indicated
- by the issuer field in the enclosing certificate structure is self, the
- certificate is valid worldwide.
-
- Otherwise, the certificate has the same validity region as the
- certificate that issued it.
- The above algorithm is applied recursively, i.e. if region is omitted from
- the issuing certificate, then the issuing certificate of that certificate is
- inspected to determine if region is present, and so on. A certificate,
- therefore, has global geographic validity as defined in 5.2.6.6.3.1 if
- region is not present in the certificate or in any certificate in its chain.
- Otherwise, i.e., if region is present in the certificate or in at least one
- certificate in its chain, the certificate has area validity as defined in
- 5.2.6.6.3.1.
- The use of the validity region to determine geographic consistency of an
- SPDU is specified in 5.2.6.6.3.1. The use of the validity region to
- determine geographic consistency of a subordinate certificate with an
- issuing certificate is specified in 5.1.2.4.
- @param assuranceLevel: indicates the assurance level of the certificate
- holder.
- @param appPermissions: indicates the permissions that the certificate
- holder has to sign application data with this certificate. A valid
- instance of appPermissions contains any particular Psid value in at most
- one entry.
- @param certIssuePermissions: indicates the permissions that the certificate
- holder has to sign certificates with this certificate. A valid instance of
- this array contains no more than one entry whose psidSspRange field
- indicates all. If the array has multiple entries and one entry has its
- psidSspRange field indicate all, then the entry indicating all specifies
- the permissions for all PSIDs other than the ones explicitly specified in
- the other entries. See the description of PsidGroupPermissions for further
- discussion.
- @param certRequestPermissions: indicates the permissions that the
- certificate holder can request in its certificate. A valid instance of this
- array contains no more than one entry whose psidSspRange field indicates
- all. If the array has multiple entries and one entry has its psidSspRange
- field indicate all, then the entry indicating all specifies the permissions
- for all PSIDs other than the ones explicitly specified in the other entries.
- See the description of PsidGroupPermissions for further discussion.
- @param canRequestRollover: indicates that the certificate may be used to
- sign a request for another certificate with the same permissions. This
- field is provided for future use and its use is not defined in this
- version of this standard.
- @param encryptionKey: contains a public key for encryption for which the
- certificate holder holds the corresponding private key.
- @param verifyKeyIndicator: contains material that may be used to recover
- the public key that may be used to verify data signed by this certificate.
- @param flags: indicates additional yes/no properties of the certificate
- holder. The only bit with defined semantics in this string in this version
- of this standard is usesCubk. If set, the usesCubk bit indicates that the
- certificate holder supports the compact unified butterfly key response.
- Further material about the compact unified butterfly key response can be
- found in IEEE Std 1609.2.1.
- If this field is present, at least one of the bits in the field shall be
- non-zero.
- @note usesCubk is only relevant for CA certificates, and the only
- functionality defined associated with this field is associated with
- consistency checks on received certificate responses. No functionality
- associated with communications between peer SDEEs is defined associated
- with this field.
- @param appExtensions: indicates additional permissions that may be applied
- to application activities that the certificate holder is carrying out.
- @param certIssueExtensions: indicates additional permissions to issue
- certificates containing appExtensions.
- @param certRequestExtensions: indicates additional permissions to request
- certificates containing endEntityExtensions.
- @note In IEEE Std 1609.2-2022 these were not marked optional; they are in
- this version of the standard; this is technically not backwards compatible
- but in practice there are no scenarios in which a legacy system will break
- (because it would have to be the case that Issue or Request was included and
- App wasn’t, but no issue or request extension values are currently defined).
- @note Issue and Request extensions are specified in this version of this
- standard for future use but do not currently have any values defined. The
- only certificate extension defined is OperatingOrganizationId and that can
- be issued by any CA. It can be taken as likely that future appExtensions
- will also be issuable by any CA, as otherwise consistency rules will differ
- between appExtensions, and so in practice these certIssueExtensions and
- certRequestExtensions fields will never be use. See Annex G for discussion
- of how the standard could in principle be extended to include extensions
- that do have a need to be validated up the chain.
- @note Calculating the hash of a certificate:
- For both implicit and explicit certificates, when the certificate
- is hashed to create or recover the public key (in the case of an implicit
- certificate) or to generate or verify the signature (in the case of an
- explicit certificate), the hash is Hash (Data input) || Hash (
- Signer identifier input), where:
-
- Data input is the COER encoding of toBeSigned, canonicalized
- as described above.
-
- Signer identifier input depends on the verification type,
- which in turn depends on the choice indicated by issuer. If the choice
- indicated by issuer is self, the verification type is self-signed and the
- signer identifier input is the empty string. If the choice indicated by
- issuer is not self, the verification type is certificate and the signer
- identifier input is the COER encoding of the canonicalization per 6.4.3 of
- the certificate indicated by issuer.
- @note Canonicalization: This data structure is subject to canonicalization
- for the relevant operations specified in 6.1.2. The canonicalization
- applies to the PublicEncryptionKey and to the VerificationKeyIndicator.
- If the PublicEncryptionKey contains a BasePublicEncryptionKey that is an
- elliptic curve point (i.e., of type EccP256CurvePoint or EccP384CurvePoint),
- then the elliptic curve point is encoded in compressed form, i.e., such
- that the choice indicated within the Ecc*CurvePoint is compressed-y-0 or
- compressed-y-1.
- @note Critical information fields:
-
- If present, appPermissions is a critical information field as defined
- in 5.2.6. If an implementation of verification does not support the number
- of PsidSsp in the appPermissions field of a certificate that signed a
- signed SPDU, that implementation shall indicate that the signed SPDU is
- invalid in the sense of 4.2.2.3.2, that is, it is invalid in the sense
- that its validity cannot be established.. A conformant implementation
- shall support appPermissions fields containing at least eight entries.
- It may be the case that an implementation of verification does not support
- the number of entries in the appPermissions field and the appPermissions
- field is not relevant to the verification: this will occur, for example,
- if the certificate in question is a CA certificate and so the
- certIssuePermissions field is relevant to the verification and the
- appPermissions field is not. In this case, whether the implementation
- indicates that the signed SPDU is valid (because it could validate all
- relevant fields) or invalid (because it could not parse the entire
- certificate) is implementation-specific.
-
- If present, certIssuePermissions is a critical information field as
- defined in 5.2.6. If an implementation of verification does not support
- the number of PsidGroupPermissions in the certIssuePermissions field of a
- CA certificate in the chain of a signed SPDU, the implementation shall
- indicate that the signed SPDU is invalid in the sense of 4.2.2.3.2, that
- is, it is invalid in the sense that its validity cannot be established.
- A conformant implementation shall support certIssuePermissions fields
- containing at least eight entries.
- It may be the case that an implementation of verification does not support
- the number of entries in the certIssuePermissions field and the
- certIssuePermissions field is not relevant to the verification: this will
- occur, for example, if the certificate in question is the signing
- certificate for the SPDU and so the appPermissions field is relevant to
- the verification and the certIssuePermissions field is not. In this case,
- whether the implementation indicates that the signed SPDU is valid
- (because it could validate all relevant fields) or invalid (because it
- could not parse the entire certificate) is implementation-specific.
-
- If present, certRequestPermissions is a critical information field as
- defined in 5.2.6. If an implementaiton of verification of a certificate
- request does not support the number of PsidGroupPermissions in
- certRequestPermissions, the implementation shall indicate that the signed
- SPDU is invalid in the sense of 4.2.2.3.2, that is, it is invalid in the
- sense that its validity cannot be established. A conformant implementation
- shall support certRequestPermissions fields containing at least eight
- entries.
- It may be the case that an implementation of verification does not support
- the number of entries in the certRequestPermissions field and the
- certRequestPermissions field is not relevant to the verification: this will
- occur, for example, if the certificate in question is the signing
- certificate for the SPDU and so the appPermissions field is relevant to
- the verification and the certRequestPermissions field is not. In this
- case, whether the implementation indicates that the signed SPDU is valid
- (because it could validate all relevant fields) or invalid (because it
- could not parse the entire certificate) is implementation-specific.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: CertificateId§craca_id: HashedId3§crl_series: CrlSeries§validity_period: ValidityPeriod§region: Option<GeographicRegion>§assurance_level: Option<SubjectAssurance>§app_permissions: Option<SequenceOfPsidSsp>§cert_issue_permissions: Option<SequenceOfPsidGroupPermissions>§cert_request_permissions: Option<SequenceOfPsidGroupPermissions>§can_request_rollover: Option<()>§encryption_key: Option<PublicEncryptionKey>§verify_key_indicator: VerificationKeyIndicator§flags: Option<BitString>§app_extensions: Option<SequenceOfAppExtensions>§cert_issue_extensions: Option<SequenceOfCertIssueExtensions>§cert_request_extension: Option<SequenceOfCertRequestExtensions>Implementations§
Source§impl ToBeSignedCertificate
impl ToBeSignedCertificate
pub fn new( id: CertificateId, craca_id: HashedId3, crl_series: CrlSeries, validity_period: ValidityPeriod, region: Option<GeographicRegion>, assurance_level: Option<SubjectAssurance>, app_permissions: Option<SequenceOfPsidSsp>, cert_issue_permissions: Option<SequenceOfPsidGroupPermissions>, cert_request_permissions: Option<SequenceOfPsidGroupPermissions>, can_request_rollover: Option<()>, encryption_key: Option<PublicEncryptionKey>, verify_key_indicator: VerificationKeyIndicator, flags: Option<BitString>, app_extensions: Option<SequenceOfAppExtensions>, cert_issue_extensions: Option<SequenceOfCertIssueExtensions>, cert_request_extension: Option<SequenceOfCertRequestExtensions>, ) -> Self
Trait Implementations§
Source§impl AsnType for ToBeSignedCertificate
impl AsnType for ToBeSignedCertificate
Source§const IDENTIFIER: Identifier
const IDENTIFIER: Identifier
Identifier of an ASN.1 type as specified in the original specification
if not identical with the identifier of
SelfSource§const CONSTRAINTS: Constraints
const CONSTRAINTS: Constraints
The set of constraints for values of the given type.
§const TAG_TREE: TagTree = _
const TAG_TREE: TagTree = _
The root of this type’s tree of tag’s if it a CHOICE type, otherwise its
Leaf that points [Self::TAG].§fn is_present(&self) -> bool
fn is_present(&self) -> bool
Source§impl Clone for ToBeSignedCertificate
impl Clone for ToBeSignedCertificate
Source§fn clone(&self) -> ToBeSignedCertificate
fn clone(&self) -> ToBeSignedCertificate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Constructed<12, 4> for ToBeSignedCertificate
impl Constructed<12, 4> for ToBeSignedCertificate
Source§impl Debug for ToBeSignedCertificate
impl Debug for ToBeSignedCertificate
Source§impl Decode for ToBeSignedCertificate
impl Decode for ToBeSignedCertificate
Source§fn decode_with_tag_and_constraints<D: Decoder>(
decoder: &mut D,
tag: Tag,
constraints: Constraints,
) -> Result<Self, D::Error>
fn decode_with_tag_and_constraints<D: Decoder>( decoder: &mut D, tag: Tag, constraints: Constraints, ) -> Result<Self, D::Error>
Decode this value implicitly tagged with
tag from a given ASN.1
decoder with a set of constraints on what values of that type are allowed. Read more§fn decode<D>(decoder: &mut D) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
fn decode<D>(decoder: &mut D) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
Decode this value from a given ASN.1 decoder. Read more
§fn decode_with_tag<D>(
decoder: &mut D,
tag: Tag,
) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
fn decode_with_tag<D>(
decoder: &mut D,
tag: Tag,
) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
Decode this value implicitly tagged with
tag from a given ASN.1 decoder. Read more§fn decode_with_constraints<D>(
decoder: &mut D,
constraints: Constraints,
) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
fn decode_with_constraints<D>(
decoder: &mut D,
constraints: Constraints,
) -> Result<Self, <D as Decoder>::Error>where
D: Decoder,
Decode this value from a given ASN.1 decoder with a set of constraints
on what values of that type are allowed. Read more
Source§impl Encode for ToBeSignedCertificate
impl Encode for ToBeSignedCertificate
Source§fn encode_with_tag_and_constraints<'encoder, EN: Encoder<'encoder>>(
&self,
encoder: &mut EN,
tag: Tag,
constraints: Constraints,
identifier: Identifier,
) -> Result<(), EN::Error>
fn encode_with_tag_and_constraints<'encoder, EN: Encoder<'encoder>>( &self, encoder: &mut EN, tag: Tag, constraints: Constraints, identifier: Identifier, ) -> Result<(), EN::Error>
Encode this value with
tag into the given [crate::Encoder] with the
constraints the values this is allowed to encode into. Read more§fn encode<'b, E>(
&self,
encoder: &mut E,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode<'b, E>(
&self,
encoder: &mut E,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
§fn encode_with_tag<'b, E>(
&self,
encoder: &mut E,
tag: Tag,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode_with_tag<'b, E>(
&self,
encoder: &mut E,
tag: Tag,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
§fn encode_with_identifier<'b, E>(
&self,
encoder: &mut E,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode_with_identifier<'b, E>(
&self,
encoder: &mut E,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
§fn encode_with_tag_and_identifier<'b, E>(
&self,
encoder: &mut E,
tag: Tag,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode_with_tag_and_identifier<'b, E>(
&self,
encoder: &mut E,
tag: Tag,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
§fn encode_with_constraints<'b, E>(
&self,
encoder: &mut E,
constraints: Constraints,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode_with_constraints<'b, E>(
&self,
encoder: &mut E,
constraints: Constraints,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
Encode this value into the given [
crate::Encoder] with the
constraints the values this is allowed to encode into. Read more§fn encode_with_constraints_and_identifier<'b, E>(
&self,
encoder: &mut E,
constraints: Constraints,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
fn encode_with_constraints_and_identifier<'b, E>(
&self,
encoder: &mut E,
constraints: Constraints,
identifier: Identifier,
) -> Result<(), <E as Encoder<'b>>::Error>where
E: Encoder<'b>,
Encode this value into the given [
crate::Encoder] with identifier and the
constraints the values this is allowed to encode into. Read moreSource§impl Hash for ToBeSignedCertificate
impl Hash for ToBeSignedCertificate
Source§impl PartialEq for ToBeSignedCertificate
impl PartialEq for ToBeSignedCertificate
impl Eq for ToBeSignedCertificate
impl StructuralPartialEq for ToBeSignedCertificate
Auto Trait Implementations§
impl !Freeze for ToBeSignedCertificate
impl RefUnwindSafe for ToBeSignedCertificate
impl Send for ToBeSignedCertificate
impl Sync for ToBeSignedCertificate
impl Unpin for ToBeSignedCertificate
impl UnsafeUnpin for ToBeSignedCertificate
impl UnwindSafe for ToBeSignedCertificate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.