Home
last modified time | relevance | path

Searched refs:Either (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/third_party/vk-gl-cts/framework/common/
DtcuEither.hpp40 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 …]
DtcuEither.cpp90 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/
Dlib.rs40 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 …]
Dserde_untagged.rs40 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()
Dserde_untagged_optional.rs40 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/
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign.types2 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 …]
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign2.types2 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 …]
DnonInferrableTypePropagation2.types23 type Either<E, A> = Left<E> | Right<A>;
24 >Either : Either<E, A>
54 declare function exists<A>(predicate: Predicate<A>): <E>(ma: Either<E, A>) => boolean;
55 >exists : <A>(predicate: Predicate<A>) => <E>(ma: Either<E, A>) => boolean
57 >ma : Either<E, A>
59 declare const es: Either<string, number>[];
60 >es : Either<string, number>[]
63 >x : readonly Either<string, number>[]
64 >pipe(es, filter(exists((n) => n > 0))) : readonly Either<string, number>[]
66 >es : Either<string, number>[]
[all …]
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign.symbols2 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 …]
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign2.symbols2 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 …]
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign.js2 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
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js2 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
DobjectLiteralWithSemicolons2.errors.txt1 … 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…
DobjectLiteralWithSemicolons1.errors.txt1 … 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…
DobjectLiteralWithSemicolons3.errors.txt1 … 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…
DobjectLiteralShorthandPropertiesErrorFromNotUsingIdentifier.errors.txt10 … 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…
DnonInferrableTypePropagation2.symbols35 type Either<E, A> = Left<E> | Right<A>;
36 >Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1))
112 declare function exists<A>(predicate: Predicate<A>): <E>(ma: Either<E, A>) => boolean;
120 >Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1))
124 declare const es: Either<string, number>[];
126 >Either : Symbol(Either, Decl(nonInferrableTypePropagation2.ts, 12, 1))
DnonInferrableTypePropagation2.js16 type Either<E, A> = Left<E> | Right<A>;
29 declare function exists<A>(predicate: Predicate<A>): <E>(ma: Either<E, A>) => boolean;
31 declare const es: Either<string, number>[];
/third_party/typescript/tests/cases/compiler/
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign.ts2 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; }
DvarianceProblingAndZeroOrderIndexSignatureRelationsAlign2.ts2 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; }
DnonInferrableTypePropagation2.ts17 type Either<E, A> = Left<E> | Right<A>; alias
30 declare function exists<A>(predicate: Predicate<A>): <E>(ma: Either<E, A>) => boolean;
32 declare const es: Either<string, number>[];
/third_party/rust/crates/either/
DREADME.rst2 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()``.
DREADME-crates.io.md1 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/vk-gl-cts/modules/gles31/functional/
Des31fDrawBuffersIndexedTests.cpp66 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/typescript/tests/cases/conformance/async/es2017/
Dawait_incorrectThisType.ts6 type Either<E, A> = Left<E> | Right<A>; alias
10 const mkLeft = <E>(e: E): Either<E, never> => ({ tag: 'Left', e });
11 const mkRight = <A>(a: A): Either<never, A> => ({ tag: 'Right', a });
22 constructor(readonly p: PromiseLike<Either<E, A>>) { }

12345678910>>...15