Enum biome_js_syntax::AnyTsType
source · pub enum AnyTsType {
Show 35 variants
TsAnyType(TsAnyType),
TsArrayType(TsArrayType),
TsBigintLiteralType(TsBigintLiteralType),
TsBigintType(TsBigintType),
TsBogusType(TsBogusType),
TsBooleanLiteralType(TsBooleanLiteralType),
TsBooleanType(TsBooleanType),
TsConditionalType(TsConditionalType),
TsConstructorType(TsConstructorType),
TsFunctionType(TsFunctionType),
TsImportType(TsImportType),
TsIndexedAccessType(TsIndexedAccessType),
TsInferType(TsInferType),
TsIntersectionType(TsIntersectionType),
TsMappedType(TsMappedType),
TsNeverType(TsNeverType),
TsNonPrimitiveType(TsNonPrimitiveType),
TsNullLiteralType(TsNullLiteralType),
TsNumberLiteralType(TsNumberLiteralType),
TsNumberType(TsNumberType),
TsObjectType(TsObjectType),
TsParenthesizedType(TsParenthesizedType),
TsReferenceType(TsReferenceType),
TsStringLiteralType(TsStringLiteralType),
TsStringType(TsStringType),
TsSymbolType(TsSymbolType),
TsTemplateLiteralType(TsTemplateLiteralType),
TsThisType(TsThisType),
TsTupleType(TsTupleType),
TsTypeOperatorType(TsTypeOperatorType),
TsTypeofType(TsTypeofType),
TsUndefinedType(TsUndefinedType),
TsUnionType(TsUnionType),
TsUnknownType(TsUnknownType),
TsVoidType(TsVoidType),
}
Variants§
TsAnyType(TsAnyType)
TsArrayType(TsArrayType)
TsBigintLiteralType(TsBigintLiteralType)
TsBigintType(TsBigintType)
TsBogusType(TsBogusType)
TsBooleanLiteralType(TsBooleanLiteralType)
TsBooleanType(TsBooleanType)
TsConditionalType(TsConditionalType)
TsConstructorType(TsConstructorType)
TsFunctionType(TsFunctionType)
TsImportType(TsImportType)
TsIndexedAccessType(TsIndexedAccessType)
TsInferType(TsInferType)
TsIntersectionType(TsIntersectionType)
TsMappedType(TsMappedType)
TsNeverType(TsNeverType)
TsNonPrimitiveType(TsNonPrimitiveType)
TsNullLiteralType(TsNullLiteralType)
TsNumberLiteralType(TsNumberLiteralType)
TsNumberType(TsNumberType)
TsObjectType(TsObjectType)
TsParenthesizedType(TsParenthesizedType)
TsReferenceType(TsReferenceType)
TsStringLiteralType(TsStringLiteralType)
TsStringType(TsStringType)
TsSymbolType(TsSymbolType)
TsTemplateLiteralType(TsTemplateLiteralType)
TsThisType(TsThisType)
TsTupleType(TsTupleType)
TsTypeOperatorType(TsTypeOperatorType)
TsTypeofType(TsTypeofType)
TsUndefinedType(TsUndefinedType)
TsUnionType(TsUnionType)
TsUnknownType(TsUnknownType)
TsVoidType(TsVoidType)
Implementations§
source§impl AnyTsType
impl AnyTsType
pub fn as_ts_any_type(&self) -> Option<&TsAnyType>
pub fn as_ts_array_type(&self) -> Option<&TsArrayType>
pub fn as_ts_bigint_literal_type(&self) -> Option<&TsBigintLiteralType>
pub fn as_ts_bigint_type(&self) -> Option<&TsBigintType>
pub fn as_ts_bogus_type(&self) -> Option<&TsBogusType>
pub fn as_ts_boolean_literal_type(&self) -> Option<&TsBooleanLiteralType>
pub fn as_ts_boolean_type(&self) -> Option<&TsBooleanType>
pub fn as_ts_conditional_type(&self) -> Option<&TsConditionalType>
pub fn as_ts_constructor_type(&self) -> Option<&TsConstructorType>
pub fn as_ts_function_type(&self) -> Option<&TsFunctionType>
pub fn as_ts_import_type(&self) -> Option<&TsImportType>
pub fn as_ts_indexed_access_type(&self) -> Option<&TsIndexedAccessType>
pub fn as_ts_infer_type(&self) -> Option<&TsInferType>
pub fn as_ts_intersection_type(&self) -> Option<&TsIntersectionType>
pub fn as_ts_mapped_type(&self) -> Option<&TsMappedType>
pub fn as_ts_never_type(&self) -> Option<&TsNeverType>
pub fn as_ts_non_primitive_type(&self) -> Option<&TsNonPrimitiveType>
pub fn as_ts_null_literal_type(&self) -> Option<&TsNullLiteralType>
pub fn as_ts_number_literal_type(&self) -> Option<&TsNumberLiteralType>
pub fn as_ts_number_type(&self) -> Option<&TsNumberType>
pub fn as_ts_object_type(&self) -> Option<&TsObjectType>
pub fn as_ts_parenthesized_type(&self) -> Option<&TsParenthesizedType>
pub fn as_ts_reference_type(&self) -> Option<&TsReferenceType>
pub fn as_ts_string_literal_type(&self) -> Option<&TsStringLiteralType>
pub fn as_ts_string_type(&self) -> Option<&TsStringType>
pub fn as_ts_symbol_type(&self) -> Option<&TsSymbolType>
pub fn as_ts_template_literal_type(&self) -> Option<&TsTemplateLiteralType>
pub fn as_ts_this_type(&self) -> Option<&TsThisType>
pub fn as_ts_tuple_type(&self) -> Option<&TsTupleType>
pub fn as_ts_type_operator_type(&self) -> Option<&TsTypeOperatorType>
pub fn as_ts_typeof_type(&self) -> Option<&TsTypeofType>
pub fn as_ts_undefined_type(&self) -> Option<&TsUndefinedType>
pub fn as_ts_union_type(&self) -> Option<&TsUnionType>
pub fn as_ts_unknown_type(&self) -> Option<&TsUnknownType>
pub fn as_ts_void_type(&self) -> Option<&TsVoidType>
source§impl AnyTsType
impl AnyTsType
sourcepub fn omit_parentheses(self) -> AnyTsType
pub fn omit_parentheses(self) -> AnyTsType
Try to extract non TsParenthesizedType
from AnyTsType
sourcepub fn is_literal_type(&self) -> bool
pub fn is_literal_type(&self) -> bool
Returns true
if self
is a literal type.
§Examples
use biome_js_factory::make;
use biome_js_syntax::T;
use biome_js_syntax::AnyTsType;
let boolean_literal = make::ts_boolean_literal_type(make::token(T![true]));
let bigint_literal = make::ts_bigint_literal_type(make::js_number_literal("1n")).build();
let null_literal = make::ts_null_literal_type(make::token(T![null]));
let number_literal = make::ts_number_literal_type(make::js_number_literal("1")).build();
let string_literal = make::ts_string_literal_type(make::js_string_literal("s"));
let undefined = make::ts_undefined_type(make::token(T![undefined]));
assert!(AnyTsType::TsBooleanLiteralType(boolean_literal).is_literal_type());
assert!(AnyTsType::TsBigintLiteralType(bigint_literal).is_literal_type());
assert!(AnyTsType::TsNullLiteralType(null_literal).is_literal_type());
assert!(AnyTsType::TsNumberLiteralType(number_literal).is_literal_type());
assert!(AnyTsType::TsStringLiteralType(string_literal).is_literal_type());
assert!(AnyTsType::TsUndefinedType(undefined).is_literal_type());
sourcepub fn is_primitive_type(&self) -> bool
pub fn is_primitive_type(&self) -> bool
Returns true
if self
is a primitive type.
§Examples
use biome_js_factory::make;
use biome_js_syntax::T;
use biome_js_syntax::AnyTsType;
let boolean = make::ts_boolean_type(make::token(T![boolean]));
let bigint = make::ts_bigint_type(make::token(T![bigint]));
let number = make::ts_number_type(make::token(T![number]));
let string = make::ts_string_type(make::token(T![string]));
assert!(AnyTsType::TsBooleanType(boolean).is_primitive_type());
assert!(AnyTsType::TsBigintType(bigint).is_primitive_type());
assert!(AnyTsType::TsNumberType(number).is_primitive_type());
assert!(AnyTsType::TsStringType(string).is_primitive_type());
sourcepub fn in_conditional_true_type(&self) -> bool
pub fn in_conditional_true_type(&self) -> bool
Checks if self
stands as the true_type
of a conditional type in Typescript.
§Examples
use biome_js_factory::make;
use biome_js_syntax::T;
use biome_js_syntax::AnyTsType;
let check_type = AnyTsType::TsNumberType(make::ts_number_type(make::token(T![number])));
let extends_type = AnyTsType::TsNumberType(make::ts_number_type(make::token(T![number])));
let true_type = AnyTsType::TsNumberType(make::ts_number_type(make::token(T![number])));
let false_type = AnyTsType::TsNumberType(make::ts_number_type(make::token(T![number])));
let conditional = make::ts_conditional_type(
check_type,
make::token(T![extends]),
extends_type,
make::token(T![?]),
true_type,
make::token(T![:]),
false_type,
);
assert!(!conditional.check_type().unwrap().in_conditional_true_type());
assert!(!conditional.extends_type().unwrap().in_conditional_true_type());
assert!(conditional.true_type().unwrap().in_conditional_true_type());
assert!(!conditional.false_type().unwrap().in_conditional_true_type());
Trait Implementations§
source§impl AstNode for AnyTsType
impl AstNode for AnyTsType
type Language = JsLanguage
const KIND_SET: SyntaxKindSet<Language> = _
source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Returns
true
if a node with the given kind can be cased to this AST node.source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Tries to cast the passed syntax node to this AST node. Read more
source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
Returns the underlying syntax node.
source§fn into_syntax(self) -> SyntaxNode
fn into_syntax(self) -> SyntaxNode
Returns the underlying syntax node.
source§fn cast_ref(syntax: &SyntaxNode<Self::Language>) -> Option<Self>where
Self: Sized,
fn cast_ref(syntax: &SyntaxNode<Self::Language>) -> Option<Self>where
Self: Sized,
Takes a reference of a syntax node and tries to cast it to this AST node. Read more
source§fn try_cast(
syntax: SyntaxNode<Self::Language>
) -> Result<Self, SyntaxNode<Self::Language>>
fn try_cast( syntax: SyntaxNode<Self::Language> ) -> Result<Self, SyntaxNode<Self::Language>>
Tries to cast the passed syntax node to this AST node. Read more
source§fn try_cast_node<T>(node: T) -> Result<Self, T>
fn try_cast_node<T>(node: T) -> Result<Self, T>
Tries to cast the AST
node
into this node. Read moresource§fn unwrap_cast(syntax: SyntaxNode<Self::Language>) -> Selfwhere
Self: Sized,
fn unwrap_cast(syntax: SyntaxNode<Self::Language>) -> Selfwhere
Self: Sized,
Cast this node to this AST node Read more
source§fn text(&self) -> String
fn text(&self) -> String
Returns the string representation of this node without the leading and trailing trivia
fn range(&self) -> TextRange
fn clone_subtree(&self) -> Selfwhere
Self: Sized,
fn parent<T>(&self) -> Option<T>
source§fn with_leading_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
fn with_leading_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
Return a new version of this node with the leading trivia of its first token replaced with
trivia
.source§fn with_trailing_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
fn with_trailing_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
Return a new version of this node with the trailing trivia of its last token replaced with
trivia
.fn prepend_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
fn append_trivia_pieces<I>(self, trivia: I) -> Option<Self>where
I: IntoIterator<Item = SyntaxTriviaPiece<Self::Language>>,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
source§fn trim_trivia(self) -> Option<Self>
fn trim_trivia(self) -> Option<Self>
Return a new version of this node without leading and trailing newlines and whitespaces.
source§fn trim_leading_trivia(self) -> Option<Self>
fn trim_leading_trivia(self) -> Option<Self>
Return a new version of this node without leading newlines and whitespaces.
source§fn trim_trailing_trivia(self) -> Option<Self>
fn trim_trailing_trivia(self) -> Option<Self>
Return a new version of this node without trailing newlines and whitespaces.
source§impl From<AnyTsType> for JsSyntaxElement
impl From<AnyTsType> for JsSyntaxElement
source§fn from(n: AnyTsType) -> SyntaxElement
fn from(n: AnyTsType) -> SyntaxElement
Converts to this type from the input type.
source§impl From<AnyTsType> for JsSyntaxNode
impl From<AnyTsType> for JsSyntaxNode
source§fn from(n: AnyTsType) -> SyntaxNode
fn from(n: AnyTsType) -> SyntaxNode
Converts to this type from the input type.
source§impl From<TsArrayType> for AnyTsType
impl From<TsArrayType> for AnyTsType
source§fn from(node: TsArrayType) -> AnyTsType
fn from(node: TsArrayType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsBigintLiteralType> for AnyTsType
impl From<TsBigintLiteralType> for AnyTsType
source§fn from(node: TsBigintLiteralType) -> AnyTsType
fn from(node: TsBigintLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsBigintType> for AnyTsType
impl From<TsBigintType> for AnyTsType
source§fn from(node: TsBigintType) -> AnyTsType
fn from(node: TsBigintType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsBogusType> for AnyTsType
impl From<TsBogusType> for AnyTsType
source§fn from(node: TsBogusType) -> AnyTsType
fn from(node: TsBogusType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsBooleanLiteralType> for AnyTsType
impl From<TsBooleanLiteralType> for AnyTsType
source§fn from(node: TsBooleanLiteralType) -> AnyTsType
fn from(node: TsBooleanLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsBooleanType> for AnyTsType
impl From<TsBooleanType> for AnyTsType
source§fn from(node: TsBooleanType) -> AnyTsType
fn from(node: TsBooleanType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsConditionalType> for AnyTsType
impl From<TsConditionalType> for AnyTsType
source§fn from(node: TsConditionalType) -> AnyTsType
fn from(node: TsConditionalType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsConstructorType> for AnyTsType
impl From<TsConstructorType> for AnyTsType
source§fn from(node: TsConstructorType) -> AnyTsType
fn from(node: TsConstructorType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsFunctionType> for AnyTsType
impl From<TsFunctionType> for AnyTsType
source§fn from(node: TsFunctionType) -> AnyTsType
fn from(node: TsFunctionType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsImportType> for AnyTsType
impl From<TsImportType> for AnyTsType
source§fn from(node: TsImportType) -> AnyTsType
fn from(node: TsImportType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsIndexedAccessType> for AnyTsType
impl From<TsIndexedAccessType> for AnyTsType
source§fn from(node: TsIndexedAccessType) -> AnyTsType
fn from(node: TsIndexedAccessType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsInferType> for AnyTsType
impl From<TsInferType> for AnyTsType
source§fn from(node: TsInferType) -> AnyTsType
fn from(node: TsInferType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsIntersectionType> for AnyTsType
impl From<TsIntersectionType> for AnyTsType
source§fn from(node: TsIntersectionType) -> AnyTsType
fn from(node: TsIntersectionType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsMappedType> for AnyTsType
impl From<TsMappedType> for AnyTsType
source§fn from(node: TsMappedType) -> AnyTsType
fn from(node: TsMappedType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsNeverType> for AnyTsType
impl From<TsNeverType> for AnyTsType
source§fn from(node: TsNeverType) -> AnyTsType
fn from(node: TsNeverType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsNonPrimitiveType> for AnyTsType
impl From<TsNonPrimitiveType> for AnyTsType
source§fn from(node: TsNonPrimitiveType) -> AnyTsType
fn from(node: TsNonPrimitiveType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsNullLiteralType> for AnyTsType
impl From<TsNullLiteralType> for AnyTsType
source§fn from(node: TsNullLiteralType) -> AnyTsType
fn from(node: TsNullLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsNumberLiteralType> for AnyTsType
impl From<TsNumberLiteralType> for AnyTsType
source§fn from(node: TsNumberLiteralType) -> AnyTsType
fn from(node: TsNumberLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsNumberType> for AnyTsType
impl From<TsNumberType> for AnyTsType
source§fn from(node: TsNumberType) -> AnyTsType
fn from(node: TsNumberType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsObjectType> for AnyTsType
impl From<TsObjectType> for AnyTsType
source§fn from(node: TsObjectType) -> AnyTsType
fn from(node: TsObjectType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsParenthesizedType> for AnyTsType
impl From<TsParenthesizedType> for AnyTsType
source§fn from(node: TsParenthesizedType) -> AnyTsType
fn from(node: TsParenthesizedType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsReferenceType> for AnyTsType
impl From<TsReferenceType> for AnyTsType
source§fn from(node: TsReferenceType) -> AnyTsType
fn from(node: TsReferenceType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsStringLiteralType> for AnyTsType
impl From<TsStringLiteralType> for AnyTsType
source§fn from(node: TsStringLiteralType) -> AnyTsType
fn from(node: TsStringLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsStringType> for AnyTsType
impl From<TsStringType> for AnyTsType
source§fn from(node: TsStringType) -> AnyTsType
fn from(node: TsStringType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsSymbolType> for AnyTsType
impl From<TsSymbolType> for AnyTsType
source§fn from(node: TsSymbolType) -> AnyTsType
fn from(node: TsSymbolType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsTemplateLiteralType> for AnyTsType
impl From<TsTemplateLiteralType> for AnyTsType
source§fn from(node: TsTemplateLiteralType) -> AnyTsType
fn from(node: TsTemplateLiteralType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsThisType> for AnyTsType
impl From<TsThisType> for AnyTsType
source§fn from(node: TsThisType) -> AnyTsType
fn from(node: TsThisType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsTupleType> for AnyTsType
impl From<TsTupleType> for AnyTsType
source§fn from(node: TsTupleType) -> AnyTsType
fn from(node: TsTupleType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsTypeOperatorType> for AnyTsType
impl From<TsTypeOperatorType> for AnyTsType
source§fn from(node: TsTypeOperatorType) -> AnyTsType
fn from(node: TsTypeOperatorType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsTypeofType> for AnyTsType
impl From<TsTypeofType> for AnyTsType
source§fn from(node: TsTypeofType) -> AnyTsType
fn from(node: TsTypeofType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsUndefinedType> for AnyTsType
impl From<TsUndefinedType> for AnyTsType
source§fn from(node: TsUndefinedType) -> AnyTsType
fn from(node: TsUndefinedType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsUnionType> for AnyTsType
impl From<TsUnionType> for AnyTsType
source§fn from(node: TsUnionType) -> AnyTsType
fn from(node: TsUnionType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsUnknownType> for AnyTsType
impl From<TsUnknownType> for AnyTsType
source§fn from(node: TsUnknownType) -> AnyTsType
fn from(node: TsUnknownType) -> AnyTsType
Converts to this type from the input type.
source§impl From<TsVoidType> for AnyTsType
impl From<TsVoidType> for AnyTsType
source§fn from(node: TsVoidType) -> AnyTsType
fn from(node: TsVoidType) -> AnyTsType
Converts to this type from the input type.
source§impl PartialEq for AnyTsType
impl PartialEq for AnyTsType
impl Eq for AnyTsType
impl StructuralPartialEq for AnyTsType
Auto Trait Implementations§
impl Freeze for AnyTsType
impl RefUnwindSafe for AnyTsType
impl !Send for AnyTsType
impl !Sync for AnyTsType
impl Unpin for AnyTsType
impl UnwindSafe for AnyTsType
Blanket Implementations§
source§impl<T> AstNodeExt for Twhere
T: AstNode,
impl<T> AstNodeExt for Twhere
T: AstNode,
source§fn replace_node_discard_trivia<N>(self, prev_node: N, next_node: N) -> Option<T>
fn replace_node_discard_trivia<N>(self, prev_node: N, next_node: N) -> Option<T>
source§fn replace_node<N>(self, prev_node: N, next_node: N) -> Option<T>
fn replace_node<N>(self, prev_node: N, next_node: N) -> Option<T>
Return a new version of this node with the node
prev_node
replaced with next_node
,
transfering the leading and trailing trivia of prev_node
to next_node
Read moresource§fn replace_token_discard_trivia(
self,
prev_token: SyntaxToken<<T as AstNode>::Language>,
next_token: SyntaxToken<<T as AstNode>::Language>
) -> Option<T>
fn replace_token_discard_trivia( self, prev_token: SyntaxToken<<T as AstNode>::Language>, next_token: SyntaxToken<<T as AstNode>::Language> ) -> Option<T>
source§fn replace_token(
self,
prev_token: SyntaxToken<<T as AstNode>::Language>,
next_token: SyntaxToken<<T as AstNode>::Language>
) -> Option<T>
fn replace_token( self, prev_token: SyntaxToken<<T as AstNode>::Language>, next_token: SyntaxToken<<T as AstNode>::Language> ) -> Option<T>
Return a new version of this node with the token
prev_token
replaced with next_token
,
transfering the leading and trailing trivia of prev_token
to next_token
Read morefn detach(self) -> T
source§impl<L, T> BatchMutationExt<L> for T
impl<L, T> BatchMutationExt<L> for T
source§fn begin(self) -> BatchMutation<L>
fn begin(self) -> BatchMutation<L>
It starts a BatchMutation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.