Fix ReflectKind description wording (#15498)
# Objective The "zero-sized" description was outdated and misleading. ## Solution Changed the description to just say that it's an enumeration (an enum)
This commit is contained in:
parent
05d20139aa
commit
1175cf7920
@ -1,9 +1,10 @@
|
|||||||
|
use thiserror::Error;
|
||||||
|
|
||||||
#[cfg(feature = "functions")]
|
#[cfg(feature = "functions")]
|
||||||
use crate::func::Function;
|
use crate::func::Function;
|
||||||
use crate::{Array, Enum, List, Map, PartialReflect, Set, Struct, Tuple, TupleStruct};
|
use crate::{Array, Enum, List, Map, PartialReflect, Set, Struct, Tuple, TupleStruct};
|
||||||
use thiserror::Error;
|
|
||||||
|
|
||||||
/// A zero-sized enumeration of the "kinds" of a reflected type.
|
/// An enumeration of the "kinds" of a reflected type.
|
||||||
///
|
///
|
||||||
/// Each kind corresponds to a specific reflection trait,
|
/// Each kind corresponds to a specific reflection trait,
|
||||||
/// such as [`Struct`] or [`List`],
|
/// such as [`Struct`] or [`List`],
|
||||||
@ -272,9 +273,10 @@ impl ReflectOwned {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
|
||||||
use std::collections::HashSet;
|
use std::collections::HashSet;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn should_cast_ref() {
|
fn should_cast_ref() {
|
||||||
let value = vec![1, 2, 3];
|
let value = vec![1, 2, 3];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user