/third_party/vk-gl-cts/framework/common/ |
D | tcuEither.hpp | 40 class Either class 43 Either (const First& first); 44 Either (const Second& second); 45 ~Either (void); 47 Either (const Either<First, Second>& other); 48 Either& operator= (const Either<First, Second>& other); 50 Either& operator= (const First& first); 51 Either& operator= (const Second& second); 92 static const First& get (const Either<First, Second>& either) in get() 101 static const Second& get (const Either<First, Second>& either) in get() [all …]
|
D | tcuEither.cpp | 90 const Either<int, float> either (intValue); in Either_selfTest() 105 const Either<int, float> either (floatValue); in Either_selfTest() 121 Either<int, float> either (floatValue); in Either_selfTest() 139 Either<int, float> either (intValue); in Either_selfTest() 157 Either<int, float> either (floatValue); in Either_selfTest() 158 const Either<int, float> otherEither (intValue); in Either_selfTest() 176 Either<int, float> either (intValue); in Either_selfTest() 177 const Either<int, float> otherEither (floatValue); in Either_selfTest() 194 const Either<TestClassWithConstructor, int> either (testObject); in Either_selfTest() 209 const Either<int, TestClassWithConstructor> either (testObject); in Either_selfTest() [all …]
|
/third_party/rust/crates/either/src/ |
D | lib.rs | 40 pub use crate::Either::{Left, Right}; 50 pub enum Either<L, R> { enum 85 $crate::Either::Left($pattern) => $result, 86 $crate::Either::Right($pattern) => $result, 134 impl<L: Clone, R: Clone> Clone for Either<L, R> { implementation 151 impl<L, R> Either<L, R> { implementation 228 pub fn as_ref(&self) -> Either<&L, &R> { in as_ref() 253 pub fn as_mut(&mut self) -> Either<&mut L, &mut R> { in as_mut() 262 pub fn as_pin_ref(self: Pin<&Self>) -> Either<Pin<&L>, Pin<&R>> { in as_pin_ref() 275 pub fn as_pin_mut(self: Pin<&mut Self>) -> Either<Pin<&mut L>, Pin<&mut R>> { in as_pin_mut() [all …]
|
D | serde_untagged.rs | 40 enum Either<L, R> { enum 45 pub fn serialize<L, R, S>(this: &super::Either<L, R>, serializer: S) -> Result<S::Ok, S::Error> in serialize() 52 super::Either::Left(left) => Either::Left(left), in serialize() 53 super::Either::Right(right) => Either::Right(right), in serialize() 58 pub fn deserialize<'de, L, R, D>(deserializer: D) -> Result<super::Either<L, R>, D::Error> in deserialize() 64 match Either::deserialize(deserializer) { in deserialize() 65 Ok(Either::Left(left)) => Ok(super::Either::Left(left)), in deserialize() 66 Ok(Either::Right(right)) => Ok(super::Either::Right(right)), in deserialize()
|
D | serde_untagged_optional.rs | 40 enum Either<L, R> { enum 46 this: &Option<super::Either<L, R>>, in serialize() 55 Some(super::Either::Left(left)) => Some(Either::Left(left)), in serialize() 56 Some(super::Either::Right(right)) => Some(Either::Right(right)), in serialize() 62 pub fn deserialize<'de, L, R, D>(deserializer: D) -> Result<Option<super::Either<L, R>>, D::Error> in deserialize() 69 Ok(Some(Either::Left(left))) => Ok(Some(super::Either::Left(left))), in deserialize() 70 Ok(Some(Either::Right(right))) => Ok(Some(super::Either::Right(right))), in deserialize()
|
/third_party/typescript/tests/baselines/reference/ |
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.types | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 3 >Either : Either<L, A> 22 map<B>(f: (a: A) => B): Either<L, B> { 23 >map : <B>(f: (a: A) => B) => Either<L, B> 31 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 32 >ap : <B>(fab: Either<L, (a: A) => B>) => Either<L, B> 33 >fab : Either<L, (a: A) => B> 58 map<B>(f: (a: A) => B): Either<L, B> { 59 >map : <B>(f: (a: A) => B) => Either<L, B> 72 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { [all …]
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign.types | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 3 >Either : Either<L, A> 22 map<B>(f: (a: A) => B): Either<L, B> { 23 >map : <B>(f: (a: A) => B) => Either<L, B> 31 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 32 >ap : <B>(fab: Either<L, (a: A) => B>) => Either<L, B> 33 >fab : Either<L, (a: A) => B> 58 map<B>(f: (a: A) => B): Either<L, B> { 59 >map : <B>(f: (a: A) => B) => Either<L, B> 72 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { [all …]
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.symbols | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 3 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts, 0, 0)) 34 map<B>(f: (a: A) => B): Either<L, B> { 41 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts, 0, 0)) 48 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 52 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts, 0, 0)) 57 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts, 0, 0)) 85 map<B>(f: (a: A) => B): Either<L, B> { 92 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts, 0, 0)) 103 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { [all …]
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign.symbols | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 3 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts, 0, 0)) 34 map<B>(f: (a: A) => B): Either<L, B> { 41 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts, 0, 0)) 48 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 52 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts, 0, 0)) 57 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts, 0, 0)) 85 map<B>(f: (a: A) => B): Either<L, B> { 92 >Either : Symbol(Either, Decl(varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts, 0, 0)) 103 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { [all …]
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 10 map<B>(f: (a: A) => B): Either<L, B> { field in Left 13 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 23 map<B>(f: (a: A) => B): Either<L, B> { field in Right 26 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { field in Right 41 readonly validate: (input: I, context: {}[]) => Either<{}[], A>, 46 decode(i: I): Either<{}[], A> { return null as any; } field in Type
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js | 2 type Either<L, A> = Left<L, A> | Right<L, A>; 10 map<B>(f: (a: A) => B): Either<L, B> { field in Left 13 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 23 map<B>(f: (a: A) => B): Either<L, B> { field in Right 26 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { field in Right 41 readonly validate: (input: I, context: {}[]) => Either<{}[], A>, 46 decode(i: I): Either<{}[], A> { return null as any; } field in Type
|
D | objectLiteralWithSemicolons2.errors.txt | 1 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 3 … error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or pro… 5 … error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or pro… 12 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p… 17 !!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or p… 22 !!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or p…
|
D | objectLiteralWithSemicolons1.errors.txt | 1 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 3 … error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or pro… 5 … error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or pro… 11 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p… 15 !!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or p… 19 !!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or p…
|
D | objectLiteralWithSemicolons3.errors.txt | 1 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 3 … error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or pro… 5 … error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or pro… 13 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p… 18 !!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or p… 23 !!! error TS18004: No value exists in scope for the shorthand property 'c'. Either declare one or p…
|
D | objectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.errors.txt | 10 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 12 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 15 … error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or pro… 56 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p… 61 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p… 68 !!! error TS18004: No value exists in scope for the shorthand property 'a'. Either declare one or p…
|
D | shorthandPropertyUndefined.errors.txt | 1 … error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or pro… 7 !!! error TS18004: No value exists in scope for the shorthand property 'b'. Either declare one or p…
|
D | objectLiteralShorthandPropertiesErrorFromNoneExistingIdentifier.errors.txt | 1 …No value exists in scope for the shorthand property 'undefinedVariable'. Either declare one or pro… 9 !!! error TS18004: No value exists in scope for the shorthand property 'undefinedVariable'. Either …
|
/third_party/typescript/tests/cases/compiler/ |
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts | 2 type Either<L, A> = Left<L, A> | Right<L, A>; alias 10 map<B>(f: (a: A) => B): Either<L, B> { 13 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 23 map<B>(f: (a: A) => B): Either<L, B> { 26 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 41 readonly validate: (input: I, context: {}[]) => Either<{}[], A>, 46 decode(i: I): Either<{}[], A> { return null as any; }
|
D | varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts | 2 type Either<L, A> = Left<L, A> | Right<L, A>; alias 10 map<B>(f: (a: A) => B): Either<L, B> { 13 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 23 map<B>(f: (a: A) => B): Either<L, B> { 26 ap<B>(fab: Either<L, (a: A) => B>): Either<L, B> { 41 readonly validate: (input: I, context: {}[]) => Either<{}[], A>, 46 decode(i: I): Either<{}[], A> { return null as any; }
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fDrawBuffersIndexedTests.cpp | 66 using tcu::Either; 164 const Maybe<Either<BlendEq, SeparateBlendEq> >& blendEq_, in BlendState() 165 const Maybe<Either<BlendFunc, SeparateBlendFunc> >& blendFunc_, in BlendState() 180 Maybe<Either<BlendEq, SeparateBlendEq> > blendEq; 181 Maybe<Either<BlendFunc, SeparateBlendFunc> > blendFunc; 211 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in setCommonBlendState() 223 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc; in setCommonBlendState() 255 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in setIndexedBlendState() 267 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc; in setIndexedBlendState() 1092 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in logBlendState() [all …]
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fDrawBuffersIndexedTests.cpp | 66 using tcu::Either; 164 const Maybe<Either<BlendEq, SeparateBlendEq> >& blendEq_, in BlendState() 165 const Maybe<Either<BlendFunc, SeparateBlendFunc> >& blendFunc_, in BlendState() 180 Maybe<Either<BlendEq, SeparateBlendEq> > blendEq; 181 Maybe<Either<BlendFunc, SeparateBlendFunc> > blendFunc; 211 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in setCommonBlendState() 223 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc; in setCommonBlendState() 255 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in setIndexedBlendState() 267 const Either<BlendFunc, SeparateBlendFunc>& blendFunc = *blend.blendFunc; in setIndexedBlendState() 1080 const Either<BlendEq, SeparateBlendEq>& blendEq = *blend.blendEq; in logBlendState() [all …]
|
/third_party/rust/crates/either/ |
D | README.rst | 2 Either title 5 The enum ``Either`` with variants ``Left`` and ``Right`` and trait 8 Either has methods that are similar to Option and Result. 43 pinned ``Either`` as inner ``Pin`` variants, by @cuviper (#77) 77 how ``Either`` fields are serialized in other types, by @MikailBag (#49) 81 - Add new method ``.map()`` for ``Either<T, T>`` by @nvzqz (#40). 122 - Implement ``Extend`` for ``Either<L, R>`` if ``L, R`` do. 126 - Fix ``Iterator`` impl for ``Either`` to forward ``.fold()``.
|
D | README-crates.io.md | 1 The enum `Either` with variants `Left` and `Right` is a general purpose 4 Either has methods that are similar to Option and Result, and it also implements 9 Note that `Either` is general purpose. For describing success or error, use the
|
/third_party/typescript/tests/baselines/reference/user/ |
D | fp-ts.log | 3 test/Either.ts(244,33): error TS2345: Argument of type 'Either<string, never>' is not assignable to… 4 Type 'Left<string>' is not assignable to type 'Either<`invalid color ${string}`, string>'.
|
/third_party/rust/crates/which-rs/src/ |
D | lib.rs | 239 cwd: Option<either::Either<bool, path::PathBuf>>, 249 cwd: Some(either::Either::Left(true)), in default() 279 self.cwd = Some(either::Either::Left(use_cwd)); in system_cwd() 293 self.cwd = Some(either::Either::Right(cwd)); in custom_cwd() 315 if self.cwd != Some(either::Either::Left(false)) && self.cwd.is_some() { in regex() 374 Some(either::Either::Left(false)) => None, in all_results() 375 Some(either::Either::Right(custom)) => Some(custom), in all_results() 376 None | Some(either::Either::Left(true)) => env::current_dir().ok(), in all_results()
|