Struct symbolic::unreal::Unreal4Context
source · pub struct Unreal4Context {
pub runtime_properties: Option<Unreal4ContextRuntimeProperties>,
pub platform_properties: Option<Unreal4ContextPlatformProperties>,
pub engine_data: BTreeMap<String, String>,
pub game_data: BTreeMap<String, String>,
}
Expand description
The context data found in the context xml file.
Fields§
§runtime_properties: Option<Unreal4ContextRuntimeProperties>
RuntimeProperties context element.
platform_properties: Option<Unreal4ContextPlatformProperties>
Platform specific properties.
engine_data: BTreeMap<String, String>
Engine data.
game_data: BTreeMap<String, String>
Game data.
Implementations§
source§impl Unreal4Context
impl Unreal4Context
sourcepub fn parse(data: &[u8]) -> Result<Unreal4Context, Unreal4Error>
pub fn parse(data: &[u8]) -> Result<Unreal4Context, Unreal4Error>
Parses the unreal context XML file.
Trait Implementations§
source§impl Clone for Unreal4Context
impl Clone for Unreal4Context
source§fn clone(&self) -> Unreal4Context
fn clone(&self) -> Unreal4Context
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Unreal4Context
impl Debug for Unreal4Context
source§impl Default for Unreal4Context
impl Default for Unreal4Context
source§fn default() -> Unreal4Context
fn default() -> Unreal4Context
Returns the “default value” for a type. Read more
source§impl PartialEq for Unreal4Context
impl PartialEq for Unreal4Context
source§fn eq(&self, other: &Unreal4Context) -> bool
fn eq(&self, other: &Unreal4Context) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Unreal4Context
impl Serialize for Unreal4Context
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Unreal4Context
impl StructuralEq for Unreal4Context
impl StructuralPartialEq for Unreal4Context
Auto Trait Implementations§
impl RefUnwindSafe for Unreal4Context
impl Send for Unreal4Context
impl Sync for Unreal4Context
impl Unpin for Unreal4Context
impl UnwindSafe for Unreal4Context
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more