allocative/impls/std/any.rs
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under both the MIT license found in the
5 * LICENSE-MIT file in the root directory of this source tree and the Apache
6 * License, Version 2.0 found in the LICENSE-APACHE file in the root directory
7 * of this source tree.
8 */
9
10use crate::allocative_trait::Allocative;
11use crate::visitor::Visitor;
12
13impl Allocative for std::any::TypeId {
14 fn visit<'a, 'b: 'a>(&self, visitor: &'a mut Visitor<'b>) {
15 visitor.visit_simple_sized::<Self>();
16 }
17}