• Home
  • Raw
  • Download

Lines Matching refs:sealed

39 pub trait FromStream<T>: sealed::FromStreamPriv<T> {}
48 let collection = U::initialize(sealed::Internal, lower, upper); in new()
74 return Ready(U::finalize(sealed::Internal, &mut me.collection)); in poll()
78 if !U::extend(sealed::Internal, &mut me.collection, item) { in poll()
79 return Ready(U::finalize(sealed::Internal, &mut me.collection)); in poll()
89 impl sealed::FromStreamPriv<()> for () { impl
92 fn initialize(_: sealed::Internal, _lower: usize, _upper: Option<usize>) {} in initialize()
94 fn extend(_: sealed::Internal, _collection: &mut (), _item: ()) -> bool { in extend()
98 fn finalize(_: sealed::Internal, _collection: &mut ()) {} in finalize()
103 impl<T: AsRef<str>> sealed::FromStreamPriv<T> for String {
106 fn initialize(_: sealed::Internal, _lower: usize, _upper: Option<usize>) -> String { in initialize()
110 fn extend(_: sealed::Internal, collection: &mut String, item: T) -> bool { in extend()
115 fn finalize(_: sealed::Internal, collection: &mut String) -> String { in finalize()
122 impl<T> sealed::FromStreamPriv<T> for Vec<T> {
125 fn initialize(_: sealed::Internal, lower: usize, _upper: Option<usize>) -> Vec<T> { in initialize()
129 fn extend(_: sealed::Internal, collection: &mut Vec<T>, item: T) -> bool { in extend()
134 fn finalize(_: sealed::Internal, collection: &mut Vec<T>) -> Vec<T> { in finalize()
141 impl<T> sealed::FromStreamPriv<T> for Box<[T]> {
144 fn initialize(_: sealed::Internal, lower: usize, upper: Option<usize>) -> Vec<T> { in initialize()
145 <Vec<T> as sealed::FromStreamPriv<T>>::initialize(sealed::Internal, lower, upper) in initialize()
148 fn extend(_: sealed::Internal, collection: &mut Vec<T>, item: T) -> bool { in extend()
149 <Vec<T> as sealed::FromStreamPriv<T>>::extend(sealed::Internal, collection, item) in extend()
152 fn finalize(_: sealed::Internal, collection: &mut Vec<T>) -> Box<[T]> { in finalize()
153 <Vec<T> as sealed::FromStreamPriv<T>>::finalize(sealed::Internal, collection) in finalize()
160 impl<T, U, E> sealed::FromStreamPriv<Result<T, E>> for Result<U, E> impl
167 _: sealed::Internal, in initialize()
171 Ok(U::initialize(sealed::Internal, lower, upper)) in initialize()
175 _: sealed::Internal, in extend()
183 U::extend(sealed::Internal, collection, item) in extend()
192 fn finalize(_: sealed::Internal, collection: &mut Self::InternalCollection) -> Result<U, E> { in finalize()
194 Ok(U::finalize(sealed::Internal, collection)) in finalize()
196 let res = mem::replace(collection, Ok(U::initialize(sealed::Internal, 0, Some(0)))); in finalize()
207 pub(crate) mod sealed { module