1+ // Copyright Contributors to the OpenImageIO project.
2+ // SPDX-License-Identifier: Apache-2.0
3+ // https://github.com/AcademySoftwareFoundation/OpenImageIO
4+
15pub use ffi:: * ;
26
37/// A TypeDesc describes simple data types.
@@ -160,8 +164,8 @@ mod ffi {
160164 arraylen : i32 ,
161165 ) -> TypeDesc ;
162166
163- /// Construct from a string (e.g., " float[3]" ). If no valid
164- /// type could be assembled, set base to UNKNOWN.
167+ /// Construct from a string (e.g., ` float[3]` ). If no valid
168+ /// type could be assembled, set base to ` UNKNOWN` .
165169 ///
166170 /// Examples:
167171 ///
@@ -178,8 +182,8 @@ mod ffi {
178182 /// Clone constructor.
179183 fn typedesc_clone ( t : & TypeDesc ) -> TypeDesc ;
180184
181- /// Return the name, for printing and whatnot. For example,
182- /// " float", " int[5]", " normal"
185+ /// Display the name, for printing and whatnot. For example,
186+ /// ` float`, ` int[5]`, ` normal`
183187 fn typedesc_as_str ( typedesc : & TypeDesc ) -> & str ;
184188
185189 /// Return the number of elements: 1 if not an array, or the array
@@ -261,13 +265,13 @@ mod ffi {
261265 /// inequality is differing vector semantics.
262266 fn typedesc_equivalent ( typedesc : & TypeDesc , b : & TypeDesc ) -> bool ;
263267
264- /// Is this a 2-vector aggregate (of the given type, float by default )?
268+ /// Is this a 2-vector aggregate (of the given type)?
265269 fn typedesc_is_vec2 ( typedesc : & TypeDesc , b : BaseType ) -> bool ;
266270
267- /// Is this a 3-vector aggregate (of the given type, float by default )?
271+ /// Is this a 3-vector aggregate (of the given type)?
268272 fn typedesc_is_vec3 ( typedesc : & TypeDesc , b : BaseType ) -> bool ;
269273
270- /// Is this a 4-vector aggregate (of the given type, float by default )?
274+ /// Is this a 4-vector aggregate (of the given type)?
271275 fn typedesc_is_vec4 ( typedesc : & TypeDesc , b : BaseType ) -> bool ;
272276
273277 /// Is this an array of aggregates that represents a 2D bounding box?
@@ -304,7 +308,7 @@ mod ffi {
304308 /// * If dsttype is int32 or uint32: other integer types will do their best
305309 /// (caveat emptor if you mix signed/unsigned). Also a source string will
306310 /// convert to int if and only if its characters form a valid integer.
307- /// * If dsttype is float: inteegers and other float types will do
311+ /// * If dsttype is float: integers and other float types will do
308312 /// their best conversion; strings will convert if and only if their
309313 /// characters form a valid float number.
310314 fn typedesc_convert_type (
0 commit comments