Lines Matching refs:like
96 it, like "opcode". Don't bikeshed over this; when in doubt use ``Kind``.
212 check roughly like ``Circle::classof(S)``. For more information, see
218 ``Foo`` automatically has a ``classof`` like:
239 Although for this small example setting up LLVM-style RTTI seems like a lot
269 Then in ``Square``, we would need to modify the ``classof`` like so:
281 The reason that we need to test a range like this instead of just equality
289 list the class hierarchy like a list of bullet points, you'll get the
306 a subclass of ``Square``, and update the ``ShapeKind`` enum like so:
319 looks like:
396 Touch on some of the more advanced features, like ``isa_impl`` and
507 Given something like this, we want to pass this object around by value, and we
508 would like to cast from objects of this type to some other set of objects. For
510 we can use some provided cast traits like so:
525 Now given the value above ``SomeValue``, maybe we'd like to be able to cast to
548 In those cases, you probably want something like this:
556 but it enables casting like so:
563 With the ``_if_present`` variants, you can even do optional chaining like this: